Create a Layout Control

When you have a Form Template that needs extra logic, you can write a client-side layout control.

Not all Form Template behaviors require code: for field-based logic that causes simple changes to controls or values, Form Template Part Bindings can be configured in the Form Template's metadata. The best practice is to use bindings whenever possible.

Step-by-step guide

  1. Download the template layout control subclass from Aptify Web JavaScript Templates.
  2. Follow the prompts in the template to implement your layout control. Remember to also change the comments to apply to your plugin rather than the template.
  3. Remove any template code that you don't need or haven't implemented.
  4. Add your implemented layout control to Aptify metadata system. See Use a UI Part To Link JavaScript Code To Metadata.


Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.