Lock all fields

This is an adaptation of Paul Guerette’s great solution for locking all fields on a form. We have tweaked the function to look out for button objects by checking the ui.oneOfChild.className of the current object. In addition we have include some security aspects of this earlier solution. Thanks to Jono for spotting an error in [...]

Read more

Lottery Ticket Checker

We received a request for a lottery ticket checker and this is the resulting example. Please note that we do not warrant the use of the form for checking of actual lottery results. The example shows how you can set up generic functions to look at data that is inputted into the form. For example, to limit [...]

Read more

Mimicking exclusion groups in tables

This example uses a checkbox in table rows, to act like a radio button exclusion group. Download: Assure Dynamics Mimicking exclusion group in table

Read more

Moving objects around a form

This example allows a user to click on an object and move it to a new location. Download: Assure Dynamics Moving objects in XFA form

Read more

Popup index for sections within form

This example demonstrates the popup method, which can be used to display an index of sections with your form. The user can select a page and the script jumps to that section. Download: Assure Dynamics Index (variable number of pages)

Read more

Referencing objects

This example shows how to reference objects in script. When in the script editor, a great tip is to press Control while you click on an object you want to reference. LC Designer will automatically insert the reference for you. You can read all about SOM expressions here and explore the example provided. Download: Assure [...]

Read more

Resetting fields

This example looks at some options for resettings fields. In particular the use of different objects. The preferred option would be to use a button as this is clearer for the user. Download: Assure Dynamics Resetting fields

Read more

Scoring dropdowns

There are a couple of examples that are related to this one. First this example shows how to use the display value and the bound value of a dropdown. The second demonstrates how you can use the global binding. This example below, shows how you can then add the value of the dropdown and summarise [...]

Read more

Scoring three options

This example looks at script to keep track of scores. CDownload: Assure Dynamics Scoring three options

Read more

Showing and hiding pages with a loop

Our previous example used a dropdown to control which page was visible. In this example we show how you can set up a loop in a function to hide all of the pages and then allow the remainder of the script to show the target page. This may be useful where you have a lot [...]

Read more

Tracking interaction

This example tracks when the user ticks checkboxes on different pages of the form. Download: Assure Dynamics Tracking checkboxes on different pages

Read more

Using a function to change visual appearance

A previous example showed how you can use script to change the visual appearance of an object. This example extends that principle and shows how you can set up a function, which can control the visual appearance of all objects. This makes it easier to maintain the form and make your script more reusable. Download: [...]

Read more