Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Form Wiring

...

Form Wiring enables the users to assign different actions for different events. This functionality is applicable for the entire form. The coding requirements have been eliminated and the functionality of Form Wiring paves the way for easier and effective configurations. 

Form Wiring

To manage the features of Form Wiring, perform the following steps in Canvas Studio. :

Let us assume that a form, with a form ID, NEW_PAYEE_FORM has already been created.

  1. On the home page of Canvas Studio, click Form Definition on the left navigation pane.

...


  1. Image Added

    The Form Definition List appears.

...


  1. Image Added

  2. Right-click the NEW_PAYEE_FORM and select the Edit Form option.

...


  1. Image Added

    The Edit Form page appears.

...


  1. Image Added


    The Form Wiring icon

...

  1. Image Addedappears on the top right side of the Edit Form page.

  2. Click the Form Wiring icon Image Removed .Image Added

...



  1. Image Added


    The Form Wiring window appears.

...


  1. Image Added

    The listed events are: Pre Model Load, Post Model Load, Pre Initialization, Post Form Renderer, Form Before Initialization, AJAX Success and AJAX Failure. For more information on events, refer Form Handlers.

...


  1. Image Added

  2. Type the name of the actions in the search box of Search APIs. The rule text box is an editable field and you can assign the name of your choice, as the rule name. For more information, refer Form and Form Item APIs.

...


  1. Image Added

    For the events of AJAX Success and AJAX Failure, you must upload appropriate JSON files. When the mode of communication with the server is successful, then you can select the event of AJAX Success, and when the established communication with the server gets failed, then you can select the event of AJAX Failure.

  2. To upload the JSON file, click the option of Choose file and select the apt JSON file.

...


  1. Tip

    The configuration screens are same for both the events of AJAX Success and AJAX Failure.

...


  1. Image Added

    The icons, on the left side, comprise of various actions; that can be assigned for the different set of listed events.

...


  1. Image Added

    The if class

...

  1. Image Addedallows you to assign configurable values for the form items. Using AND, OR gates, you can assign the specific set of configurable values. The Add group and Add rule functionalities pave the way for you to add groups and rules respectively.

...


  1. Image Added

    The

...

  1. Image Added icon represents Favorites category. The actions, categorized under the section of Favorites, have been depicted in the following screen shot.

...


  1. Image Added

    The Image Modified icon represents Add category. The actions, categorized under the section of Add, have been depicted in the following screen shot.

...


  1. Image Added

    The

...

  1. Image Added icon represents Display Configuration (DisplayConfig) category. The actions, categorized under the section of DisplayConfig, have been depicted in the following screen shot.

...


  1. Image Added

    The

...

  1. Image Added icon represents Data Configuration/Reset (DataConfig/Reset) category. The actions, categorized under the section of DataConfig/Reset, have been depicted in the following screen shot.

...


  1. Image Added

    The

...

  1. Image Added icon represents Enable/Show category. The actions, categorized under the section of Enable/Show, have been depicted in the following screen shot.

...


  1. Image Added

    The

...

  1. Image Added icon represents Disable/Hide category. The actions, categorized under the section of Disable/Hide, have been depicted in the following screen shot.

...


  1. Image Added

    The

...

  1. Image Added icon represents Action/Launch category. The actions, categorized under the section of Action/Launch, have been depicted in the following screen shot.

...


  1. Image Added

    The

...

  1. Image Added icon represents Remove category. The actions, categorized under the section of Remove, have been depicted in the following screen shot.

...


  1. Image Added

  2. To configure the if class, click

    Image Removed

    Image Addedicon. Select the event, Post Form Renderer. Click Select drop-down list to select a form item, e.g. TEXT_FIELD937 (Account No).

    Tip

    The option, isFormValid prompts the user to assign a possible value, which is either true or false.

...


  1. Image Added

  2. Once, you select the text field of your choice, a couple of drop-down lists appear. From the list of options, provided in the drop-down list, choose an appropriate value, as shown in the following screen shote.g. equal.

...


  1. Image Added

  2. After selecting the appropriate value, proceed to select another form item, e.g. TEXT_FIELD145 (Confirm Account No) from the drop-down box, as shown in the following screen shot.

...


  1. Image Added

  2. Click Save to save the rule.

...


  1. Image Added

    The created rules are categorized under the segment of Rules List, which appear on the right side of the window.

...


  1. Image Added

    Several actions can be applied for a single event.

    There are no restrictions placed on the limits.

    You can configure different actions for the same event.

    For instance, if you wish to



  2. To disable a form item

    ; then click

    , select the Disable form items in

    form

    form action. 

...


  1. Image Added

    A modal window, titled as Disable form items in form appears.

...


  1. Image Added

  2. Click the Field Name and select a form item, e.g. (OTP_FIELD463). There are no restrictions placed on the selection of form items and Based on your needs and requirements, you can even select multiple form items.

...


  1. Image Added

  2. Click Save.

...


  1. Image Added

  2. Click Save to save the rule. To edit the rule, click Image Removed Image Addedicon, whereas to delete the rule, click Image Removed Image Addedicon.

...


  1. Image Added

    The newly created rule appears under the category of Rules List, which can be found on the right side of the window.

...


  1. Image Added

  2. Click

    Image Removed

    Image Added icon to exit the page.

...


  1. Image Added

  2. Click Save Image Removed Image Addedto save the form.

...


  1. Image Added

    A confirmation message, indicating a successful save appears.

...


  1. Image Added

  2. Click Ok

    Let's presume that the form, NEW_PAYEE_FORM has been mapped to the app, New Form, which in turn, is mapped to the workspace, titled as Payee Form. The following screen shot serves as a good illustration of the output in the functional application, Modelhouse. The selected event type was Post Form Renderer, while the OTP Field was disabled by using the Disable form items in forms action. On viewing the following screen shot, it can be clearly noticed that

...

  1. the OTP Field is disabled. 

...


  1. Image Added