on 11-26-2008 7:58 AM
Hi All -
I am working on ADOBE Interactive forms. I am not able to find out, How to set a particular field as a 'Mandatory field' based on some condition. I am using FormCalc as scripting language.
i.e: I have a field "RATING". I want to make the next field "COMMENT" as mandatory when "RATING" is less than 3.
Hi Vishal,
Check if Ratting it is greater than 3 then set "error" value to the "mandatory" property ( for making field mandatory) else set the "disabled" value to mandatory property( for making field optional ).
$.mandatory = "error"
Regards,
Vikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Vikram/Rose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
You need to set the mandatory attribute of the specific field according to your condition. In FormCalc this will be similar to this,
if (Rating < 3) then
$.mandatory = "error"
$.mandatoryMessage = "The corresponding Comment field is mandatory. Please fill"
else
$.mandatory = "disabled"
endif
The mandatory property can be set as:
"error" : Makes the field compulsory to be filled before submission
"disabled" : Makes the field optional
"warning" : Gives a warning to the user that the field should be filled, but doesn't cause an error on submission
The property "mandatoryMessage" specifies the message to be displayed to the user when the mandatory field isn't filled before submission.
Regards,
Rose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
What type of scenario are you building your Adobe form in? ABAP WebDynpro... Java Web Dynpro, or HCM Processes and Forms?
Cheers,
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.