PDA

View Full Version : Fill textbox with specific text when criteria met



bqheng
06-08-2014, 09:15 PM
Hi,

I have attached a form for reference. What I hope to achieve is to have the words "A minimum of 3 exhibits must be supervised" to show up only when check3 (Case work under supervision) is checked.

macropod
06-09-2014, 08:38 PM
Given that formfields are being used, you could assign an appropriate macro to the formfield's 'on exit' property. I'd be inclined to use field coding in the body of the document for the variable text and have the macro update a custom document property that the field then tests.

An alternative that doesn't need any macros is to use a dropdown formfield to simulate the checkbox. Simply set the formfield's 'calculate on exit' property and use field coding to test its state for the variable text.