This we have tried and it was working but we should not have the validation tagged to property as edit validate rule.
We would like to use the same property with validation and without validation in situation basis and we have many properties used in this manner. So could you please let us know the solution to achieve using run script.
It sounds like a similar situation to what you want occurs when the out-of-box "save" feature and "submit" are compared.
Suppose you have a required field called "street address". If user presses "submit" before filling this in, you want to see a screen error saying something like "street address is required".
However, if the user presses "save" before filling the required street address field in, you would want to quietly save the work object since the user may be leaving for the day with the intention of filling in the street address tomorrow.
So this is a good example of a field whose validation rules are dependent, and we want to allow the blank field if "save" is chosen, but demand a value for the field when "submit" is chosen.
Can you design your validation similarly to this situation to provide for your dependent validation ? /Eric
I am not wrong the scenario which you explained can be handled only in server end.
In my case for example consider that i have the "street address" used in two different sections which should behave like with validation in one section and without validation in another section and i would like to use one property that to with client side validation.
I think this can be achieved using On change -> Run script. Here i would need to set the message on screen (not as js alert).
I tried to use the code of Edit validate to set the message on property as below but i couldn't get what is the object here. Please suggest.
If you want to set the validation message on a property using EditValidate, we have many OOTB rules on the same. Kindly check the rule:ValidateOperatorID and is used in property:pyUserIdentifier. Below is the sample code used in that edit validate rule. Let me know, if you are not looking this kind of code snippet for your req.
I have used the same kind of code running in run script from the control but i could not get what is the object in the below statement. I think its a property reference. Here i would like to know how i can pass this as a parameter.