I have a form with several radiobutton lists and textfields that I wish to be required for the user to fill. I have tried setting the fields as 'User Entered - Required' under 'Object' - 'Value', but this did not seem to do anything. Possibly because I'm not using the standaring Submit-button, but have created my own to be able to send the form as a pdf attachment (and not xml).
Furthermore I tried placing the following under the 'click' event of my Submit-button:
TextField1.mandatory = "error"
RadiobuttonList.mandatory = "error"
(tried both separately, and also both with and without full reference path)
but this does nothing either. So I tried creating a more manual code to check if the fields are empty (using 'isNull'), but for some reason this fails too when I try checking more than one field at the same time, but now I at least get an error message in the debugger (which doesn't really tell me much except what I know from before..).
Anyone got any tips as to what I can do or what I'm doing wrong?
the mandatory features for form object only work with the default buttons of designer.
For customized buttons you need to program your own validation script.
If you wish to mail the form back as a PDF, you can use the default mail button of Designer.
You only have to change one thing in the XML-source.
Select the button and switch to the XML-source view.
Search for the following line:
<submit format="xml" textEncoding="UTF-8" target="mailto:"/>
Now change it to:
<submit format="pdf" textEncoding="UTF-8" target="mailto:"/>
That's all.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs