== Changelog ==

= 1.2.8 =
* Fixed: inputs, selects and options of a form lost their `id`, `class`, `style`, `data-` and `aria-` attributes. A label's `for=` led nowhere, field styles and classes were lost, and the Calculation total did not reach its hidden field (0.00 was sent). They are kept now.
* Fixed: in the form editor the lists of fields for the auto-reply e-mail and for the Mailchimp e-mail are filled when the editor opens. Before, they stayed empty until a field was changed, and saving without a change cleared the chosen field.
* Fixed: the success message, custom JS, auto-reply e-mail and webhook headers boxes were escaped twice, so an ampersand became `&amp;` after saving; they now keep what you typed. Webhook headers keep their own lines, and validation patterns keep `<` and `>`.
* Calculation fields work the formula out with a built-in reader instead of running it as code. Totals are the same as before.
* Security: the settings form, the form editor's JSON and a submission are read field by field and cleaned value by value, and saving settings checks the `manage_options` capability next to the nonce. Conditional logic is rebuilt from the operators the form knows.
* The scripts and styles of the admin screens, which were written into the pages, are separate files loaded the WordPress way. The screens look and work the same. The script handles of Google Maps, Yandex Maps and reCAPTCHA v3 carry the `formforge-` prefix.
* The logo in the admin screens is the new mark.

= 1.2.7 =
* Database queries are written out in full, as the wordpress.org review rules ask: every query names its table and says what it reads or changes right where it is sent. What the queries do is unchanged.
* The name is spelled "Fillin Forge" everywhere you read it.
* The Webhook box in the form builder now says what really happens: a webhook is sent once, and a failed delivery is not sent again.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.6 =
* If WP-Cron does not start a Fillin Forge task on time (a retry that adds a booking to your calendar, a row for Google Sheets, a payment check) and the task is more than 15 minutes late, the Fillin Forge screens now tell administrators, and the notice can be hidden for a day. The button "Run them now" starts up to 10 such tasks per press.
* Tasks that Fillin Forge Pro handles are neither run nor removed while Pro is off or too old, and the notice says so.
* On a site with DISABLE_WP_CRON the notice advises a system cron job and links to how to set one up.
* The payment number in e-mails, Slack messages and webhooks is now labelled "Payment ID", as on the submission screen. Before, it said "Payment intent".
* Deactivating Fillin Forge now removes its scheduled retries for calendar events and Google Sheets rows. Before, retries that carried data stayed in the queue.
* The new texts are translated into the 15 languages the plugin ships in.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.5 =
* **If you take bookings into Google Calendar, update Fillin Forge Pro to 1.3.6 as well.** With an older add-on the link below already works, but a booking whose event could not be created is neither marked nor reported.
* Submissions: a booking whose calendar event could not be created (Fillin Forge Pro 1.3.6 marks it) shows its own sentence next to "Time not confirmed", in the list and in the submission window: check your calendar, add the event if it is not there, and confirm the time with the visitor.
* The e-mail "Time not confirmed in the calendar" has its own wording for an event that could not be created: its subject ends with "the event could not be created", and the text says to check the calendar and add the event if it is missing.
* The link in that e-mail now opens the Submissions list on the page that holds the submission and scrolls to its row. Before, it opened the first page of the list, and an older submission could be pages away.
* The new texts are translated into the 15 languages the plugin ships in.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.4 =
* **If you take bookings into Google Calendar, update Fillin Forge Pro to 1.3.5 as well.** With an older add-on the time picker below already works, but a booking whose time could not be confirmed is neither marked nor reported.
* Time picker: the same message shows when the request for the free times fails altogether or its answer cannot be read. The browser used to offer every time of the day unchecked.
* Time picker: when the date is changed quickly, a late answer for an earlier date no longer replaces the times of the date shown now, and no longer clears the time already picked.
* Submissions: a booking whose time was not put in the calendar shows "Time not confirmed" in the list and in the submission window, with a sentence on what to do. Fillin Forge Pro 1.3.5 sets the mark.
* A short e-mail "Time not confirmed in the calendar" goes to the form's notification address for such a booking. Fillin Forge Pro 1.3.5 asks for it; a form with its admin notification switched off gets none.
* The new texts are translated into the 15 languages the plugin ships in.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.3 =
* **If you take card payments, update Fillin Forge Pro to 1.3.4 as well, and Pro first.** The add-on now confirms every payment with Stripe. With an older Pro a notice asks you to update it, and every paid submission is saved as "Payment not confirmed" until you do (they are checked again by themselves afterwards).
* Payments: a card payment is no longer saved as paid just because a payment id came with the form. Fillin Forge asks Fillin Forge Pro to confirm the payment with Stripe, and the amount saved with the submission is the one Stripe holds, not the one the browser reported.
* Payments: a payment that does not exist, belongs to another form, was not paid or already belongs to another submission is refused, and the visitor is told that the payment could not be verified.
* Payment statuses in words: a submission paid for another amount than its values come to is kept as "Paid amount differs", a payment nobody could confirm yet as "Payment not confirmed", and one Stripe holds no completed payment for as "Not paid". The notification, the list, the submission, the PDF and the export say so, with a sentence on what to check.
* The submission shows a "Check payment in Stripe" button (from Fillin Forge Pro 1.3.4) for a payment that is not confirmed yet.
* Saving a form tells you when a payment amount comes from a calculation the server cannot repeat.
* Payment field: the editor opened an old fixed payment amount in a currency without hundredths (JPY, for example) divided by 100, so 1000 yen showed as 10.00 and was saved as 10. It now shows the amount as it was typed.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.2 =
* **If you take payments in a currency without hundredths (JPY, KRW, VND, CLP, or another one Stripe counts in whole units: BIF, DJF, GNF, KMF, MGA, PYG, RWF, VUV, XAF, XOF, XPF) and got around the old mistake below by typing a price 100 times smaller, put the real price back as soon as Fillin Forge Pro 1.3.3 is installed, because the fix for the charge is in the add-on. After that a price is charged exactly as typed, so the small price would be charged as the small price.**
* Payment amounts: every currency was counted in hundredths, so a price of 1000 JPY in the payment field was charged as 100,000 JPY. Amounts are now counted in the currency's own unit (whole yen for JPY, cents for USD), and the amount saved with a submission is shown the same way, for example JPY 1,000 or USD 10.00. The payment field itself is in Fillin Forge Pro, so if you run the add-on, update it to 1.3.3 as well.
* Rating field: clicking a star now tells conditional logic and calculations, so a field that shows, hides or adds up depending on the rating changes straight away.
* Templates: Market Research and General Survey no longer bring a page break field, which only works with Fillin Forge Pro. Without it, saving turned that field into a text input labelled "(Requires Pro)"; now the form is a single page. In Internship Application the graduation year list starts at the current year, and in Service Appointment the vehicle year goes up to next year, instead of years fixed in advance.
* The rule for which fields of a form hold a value is now kept in one place, so the Google Sheets rows of Fillin Forge Pro keep their columns in the form's order.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.1 =
* A Forge plugin deleted a moment earlier in the same bulk delete is no longer counted as still installed, and a Forge plugin for WooCommerce no longer keeps the shared data on the site for good.
* Needs Fillin Forge Pro 1.3.0 or newer if you run the add-on, as before.

= 1.2.0 =
* Fixed: the form editor's preview ended in an error, because the preview request called a check that had been renamed. It now runs the same checks as saving a form.
* Fixed: with an out-of-date Fillin Forge Pro add-on installed, saving a form no longer turns its Pro fields into text or switches its Pro settings off, so the add-on's update finds them as they were. The cards of the form editor that ask for the add-on say to update it, with a link to the download, instead of offering it for sale.
* The changed lines are translated in all 15 shipped languages.

= 1.1.0 =
* New: a “Send a test submission” button in the form editor. It sends one sample submission through the saved form by the same code a visitor's submission goes through (validation, the saved record, the notification email), so you can check a form without filling it in. The record is marked Test; the notification email starts with “[Test]” and says it is a test; any email field gets your own address, so the auto-reply comes to you. reCAPTCHA is not asked for, and nothing goes on to webhooks, integrations, post or user actions or analytics.
* When a form cannot be tested, the button says why in plain words: a required file upload, a payment field, a required field whose pattern or length limit no sample value can meet, or an admin page opened at a different address from the site's.
* Test submissions are left out of the counts, the exports and the analytics, and out of the REST submissions list unless it is asked for status=test.
* A star rating must be a whole number from 1 up to the field's number of stars. A rating of 0 counts as “not rated”: an optional field accepts it and a required field asks for a rating.
* Fixed: every Fillin Forge admin screen raised a PHP warning, and the builder preview linked a stylesheet the free plugin no longer ships. The conversational layout's stylesheet now comes from the Pro add-on.
* The new lines are translated in all 15 shipped languages.

= 1.0.41 =
* Deleting the plugin leaves the job queue the Forge plugins share in place while another Forge plugin or add-on is still on the site. The check used to miss add-ons, and Rank Forge installed from wordpress.org, so the queue could be dropped while a neighbour still had jobs in it.

= 1.0.40 =
* Internal clean-up in the documentation of a shared helper; no change in behaviour.

= 1.0.39 =
* The free plugin no longer loads anything from Google or Stripe on its own screens; those scripts come with the add-on.
* Request input is sanitised where it is read, and admin output is escaped.

= 1.0.38 =
* **This release needs Fillin Forge Pro 1.1.0 or newer if you run the add-on.** An older add-on is switched off whole rather than left running, because beside this core it would be present and wrong rather than absent. Until you update it Post Submission, User Registration, multi-step and conversational forms, payment, repeater and calculation fields, AI form generation and the analytics screens are unavailable. Forms already saved and the submissions already collected are untouched, an admin notice names both versions and what stopped, and installing the current add-on brings all of it back.
* Deleting the last Forge product on a site now clears the job queue the Forge plugins share — its table, its two scheduled events and its version marker. While any other Forge product is still installed, deleting this one leaves the queue exactly as it is, because the pending jobs in those rows are that product's too.
* The Conditional Logic section no longer shows a PRO badge — conditional logic is part of the free plugin.
* Admin screens load their scripts and styles through WordPress instead of inline tags, and file writes go through the WordPress filesystem API.

= 1.0.37 =
* No change in this package: the release updated parts that ship only in the edition distributed through avakode.com.

= 1.0.36 =
* No change in this package: the release updated parts that ship only in the edition distributed through avakode.com.

= 1.0.35 =
* Smaller package and one less admin surface: the SDK’s own menu, opt-in screen and promotional notices are gone.

= 1.0.34 =
* No change in this package: the release updated parts that ship only in the edition distributed through avakode.com.

= 1.0.33 =
* No change in this package: the release updated parts that ship only in the edition distributed through avakode.com.

= 1.0.32 =
* The inline assets of the docs link are emitted as a literal nowdoc block instead of being assembled in an output buffer.

= 1.0.31 =
* The address field with map and geocoding is likewise unrestricted — it uses your own Google or Yandex key and never touches our servers.
* The appointment picker now generates its time slots on any install. Overlaying real busy times from a connected Google Calendar still needs the separate Pro add-on, which holds the OAuth application.

= 1.0.30 =
* Security hardening: all dynamic output is now escaped late at the output site with the context-appropriate function (esc_html/esc_attr/esc_url, esc_html__ for translated strings used as format strings, and wp_kses for trusted pre-built admin/field markup). No behavioural changes.

= 1.0.29 =
* Pro-only features (Post Submission, User Registration, multi-step forms, conversational mode, repeater and calculation fields) are now provided entirely by the Fillin Forge Pro add-on and are no longer bundled in the free plugin — the free download contains only fully-functional free features.
* Removed the leftover form-count limit scaffolding; the free plugin has always supported unlimited forms.

= 1.0.28 =
* Uninstall cleanup now removes transients only under the plugin's own unambiguous prefix, so unrelated transients belonging to other plugins are never deleted.

= 1.0.24 =
* No change in this package: the release updated parts that ship only in the edition distributed through avakode.com.


= 1.0.21 =
* Hardened inline admin script output (field-mapping editors).
* WordPress.org compliance and code-quality improvements.

= 1.0.20 =
* No change in this package: the release updated parts that ship only in the edition distributed through avakode.com.

= 1.0.19 =
* No change in this package: the release updated parts that ship only in the edition distributed through avakode.com.

= 1.0.18 =
* WordPress.org compliance hardening.
* The Google integration SDK now loads only when the Pro Google Sheets feature is active.
* readme metadata cleanup.

= 1.0.0 =
* Initial release.
