“Low” security settings to expire a form

This example demonstrates how you can hardwire a date into a form, so that the form will not display after that date. This is not a high security method and a user with a reasonable knowledge of XFA forms would be able to negate these measures. Download: Assure Dynamics Security page visible after set date

Read more

Changing an objects presence and relevant properties

This example demonstrates how you can script to change an object’s presence and relevant properties. While you can set these in the Object > Field palette, you may need to changes these values at runtime. Download: Assure Dynamics Changing the objects presence

Read more

Changing the display pattern

A previous example looked at scripting options to change the locale at runtime. This example extends this approach and demonstrates how you can change the display pattern at runtime. Download: Assure Dynamics Changing the display pattern at runtime

Read more

Changing the highlight colour behaviour

This solution explores ways in which you can change how the fields on your forms are highlighted. You can force the highlight to be on or off. In addition you can change the colour of the highlight. Download: Assure Dynamics Highlight colour behaviour

Read more

Changing the locale at runtime

This example changes the locale of objects in the form. For example you can change the locale for the date, quantity and cost fields. The first page targets specific fields, whereas the second page uses a function to change the locale of all fields on page 2. Download: Assure Dynamics Changing Locale

Read more

Changing the visual appearance of checkboxes and radio buttons

This first example includes three sets of scripts, to change the visual appearance of checkboxes and radio buttons. You can mix and match these solutions to suit your requirements. The second example was added in October, to provide a more efficient way of dealing with radio buttons. The script is generic and can be dropped [...]

Read more

Checking for null values prePrint

This example provides a generic solution that loops through a page and if all of the objects are null, then it will not print that page. If any of the objects have a value, then the page will be printed. Again, this demonstrates the advantages of using a function (in a script object), which contains the main [...]

Read more

Detecting key presses

This example demonstrates how you can detect if the user is pressing certain keys. For example the Control key or the Shift key. In addition you can detect how the user has committed a value to a field. These methods can be used to react to the users actions. Check out the examples in the [...]

Read more

Form variables

John Brinkman describes form variables in his post, covering all of the various options: Creating variables in the File > Form Properties > Variables tab. Creating a form variable in JavaScript. I wanted to explore a use case where form variables associated with a particular field would be useful. As an example here is a form where [...]

Read more

Hiding null objects

This example uses a function in a script object to work through the form and set the presence of null objects to hidden. The example also demonstrates the difference between positioned and flowed subforms, as the objects are hidden. Download: Assure Dynamics Hiding null objects

Read more

Limiting the number of characters in a field

This example looks at two possible ways to limit the number of characters in a field. The first uses standard settings in the Object > Field palette. Whereas the second using scripting in the exit event of the field. Download: Assure Dynamics Limiting input to set character length

Read more

LiveCycle Designer ES2 script events

This is a great tool for exploring how and when events fire. Download: Assure Dynamics LiveCycle Designer Script Events

Read more