While we’re looking at LiveCycle Designer, here’s another great new tool that will help you avoid writing potentially long and tedious script. It’s called Action Builder and it’s pretty powerful. You can use it to define actions that will add or remove fields or sections of your form, set field values, change field or background colours, hide or show objects, or set focus to a specific field. All without writing any script by your yourself.
In this example, we want to either show or hide a bunch of credit card fields depending on the Payment option that was selected.


Assuming you have a form with these fields already on them, you would follow these steps (a link to the sample form is below):



Action Builder creates what is called “managed script”. You can see this script in the Change event of the Payment field. You can, of course, edit this script – but it’s not recommended. And if Designer detects any modifications it will assume that you’re taking control and the script will become unmanaged.
Here’s the sample pdf if you want to take a look: Registration.pdf
Ernest
