How to reload a field

Ultimate Guide: How to Trigger Field Reloads in v6 Forms

Overview

In v6, you can configure a field to reload another field or area on the form using the "Reload" event. This involves setting up the event in the field's events section, configuring the target field with a reload event, and creating a custom event with the appropriate syntax. To dynamically alter the field upon reload, you'll need to incorporate a PHP function or a "Read data" function.

In v6 a field can trigger reloading another field or area on the form using the "Reload" event under the field "Events" section.

  1. Under the field events section, select the desired event settings and set the action to "Reload" then set the element identifier to the name of the field you want to reload.
  2. Open the settings area of the field you want to reload and go to "Advanced" and in the "Reload event" write "reload_field".
  3. Go to the form setup section and create a new event named "reload_field".
  4. Each field under the "Designer" section has a unique identiying "view name", its written inside a black label, please take a note of the view name of the field to be reloaded.
  5. In the new created event, drag a "Custom code" action and write the following syntax inside: {view:view_name_of_field}
  6. Saving the form the way its now will simply reload the target field without any changes to its initial form loading state, so a PHP function or a "Read data" function should be used to dynamically alter the field settings before its reloaded.

You may also like:

Comments:

You need to login to be able to post a comment.