Field Names (NAME1, COUNTRY..) lenghts are not fixed. User_1 today has 3 fields, tomorrow he may have 4 fields, meaning its dynamic, passing via Data View. Purposfully, am concatenating fields with '$' with in back end/data view source, in order to split in Java Script.
Pls. let me know How can i make these specified fields as mandatory DYNAMICALLY based on user LOG-IN (am getting the user ID into another invisible text field for this requirement)? am doing like below,
1) Assigning/moving this data CITY$REGION$COUNTRY$ into another variable, say, my_string.
2) After my_string holding the data as CITY$REGION$COUNTRY$, i want to split my_string into a my_array
3) Reading this my_array for each field, if i found then, i want to make it as REQUIRED field in its INITIALIZATION event (say, i am at NAME1 field position)
xfa.resolveNode("VISITOR.PAGE1.Subform2.NAME1").access = "readOnly";
Views
Replies
Total Likes