/
Create a Layout Control

If you have a comment on this topic, contact Aptify Documentation. If you want to return to the Aptify Community Site, please click here.

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's metadata system. See Use a UI Part To Link JavaScript Code To Metadata.

Related content

Developing for Aptify Web
Developing for Aptify Web
Read with this
Create a Layout Control
Create a Layout Control
More like this
Creating a New Form Template
Creating a New Form Template
Read with this
Create a Form Component
Create a Form Component
More like this
Developing Field-Level Validation Scripts
Developing Field-Level Validation Scripts
Read with this
Create a Form Component
Create a Form Component
More like this

Copyright Ā© 2014-2019 Aptify - Confidential and Proprietary