Dear ,
having the validation as red box is by using "if form passes validation" condition and checking the controls u need.
but this scenario couldnt be applied using 1 condition , because this scenario is only applied if its a rejection .
so u will need to add 2 conditions , mixed by "advanced condition" and "if form passes validation" (this is what i use).
advanced condition --> (if drop down list = approve)
then ur block of actions when its approve .
advanced condition --> (if drop down list = reject)
AND
if form passes validation (check the comments text area)
then ur block of actions when its a reject .
This way will ask for comments area and make it red if its empty , in case of the rejection .
Hope it helps!
Regards.
Thank you. I did a little tweak on the rule with your logic and it worked great. Just wonder how to do the following logic
If ((Condition1 and condition 2) or (condition 3))
{
set some variables
if (condition 4)
{
execute block 1
}
else
{
execute block 2
}
}
else if (condition 5)
{
execute block 3
}
Dear ,
Glad to hear , i think ur other question is all about using nested if conditions ...
oh well , in smartform rules , its not possible ... but u could workarround it by using UNBOUND Rules .
so , for ur nested if condition , go create it as an UNBOUND rule ..
then inside ur main if condition , go and call "execute another rule" and call that UNBOUND rule .
in this way u could have nested if conditions .
Hope it helps!
Regards.