Hello everyone,
I am new here and relatively new to pdf javascripting, but I've got some decent experience in other programming language.
I am trying to create a fillable pdf form in LC Designer. The form carries subforms and fields which will be visible and mandatory depending on the choice made in a radio button list. Basically I am trying to reproduce the effect one gets when manually chooses "User entry - required". The field becomes border red, if the highlighter is turned on. I've tried different properties, but the field is not becoming bordered red.
Any ideas? I've looked through the xml manual, but without much success with this particular matter.
Thanks,
Marek
Each field has a property called "mandatory"
// Not Required
MyField.mandatory = "disabled";
// Set to Required
MyField.mandatory = "error";
This is the null test value that will be used when a submit operation is performed. But if you want to manually control what gets highlighted then you'll need to disable the default highlighting and write the code for it.
You can find out more by searching the forums for the word "mandatory".
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script