OnCellEdit() how can i write validation based on any other field value?

ashwanikumar
Tera Expert

Hi All,

 

FIELD VALIDATION:

As per the requirement I need to populate state field value based on country value in list view. i have made state field value dependent on country field.

now the problem is State field shows all the dropdown options when country is empty in the list view. i am writing the oncelledit script to resolve this issue. basically if country is empty script will not allow state value submission.

Now the challenge I am facing is that i am unable to get the country value within the onCellEdit script. g_form.getValue is not working. Is there any alternate ways to resolve it?

5 REPLIES 5

I was able to figure out the issue. I was not providing a callback(true); function call for all scenarios and this was causing a problem.