I made one filed called "age" and it's identifier is "id_age".
and I entered validation rule like this.
"[[sex]]"=="M"?[[age]]>18:"[[sex]]"=="F"?[[age]]>15:true;
The "sex" field is radio button and the values are "M:", "F".
Here are the test scenario.
1. WI loaded firstly (or reloaded)
- A page loaded firstly, when I execute "RMPApplication.validate()", age filed is prompted as invalid state.
- A page loaded firstly, when I execute "id_age.setValue("")", age field is prompted as invalid state.
2. A value input as invalid or valid
- When I select sex as "M" and enter 19, age field is prompted as valied state. (validation rule returns true) and I deleted 19. It is still valied state even though that field is empty.
- When I select sex as "M" and enter 17, age field is prompted as invalid state. (validation rule returns false) and I deleted 17. It is still invalied state even though that field is empty.
So as a result, I guess validation rule doesn't check empty value of field.
Here are my questions.
I want to disable the age field when the value is empty. How can I do that?
I want to reset the age field if needed as id_age.setValue() method. As you refer to attached video, the page loaded firstly, and when I execute id_age.setValue(""), it rurned as invalied state. How can I do that?
How can I handle the validation rule of the field when a field is empty?
Regards,
Alan.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/8273c42e-cfb2-4116-ac66-1be1842cde1f%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/a38f3f3f-bb62-4ef8-9749-5ad6875f2fe3%40runmyprocess.com.