- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2018 09:03 AM
End users on this instance have no role. They have read access only to forms that include them as a reader.
The script on the Access Control that allows read access for designated readers (with no role) works:
var answer = false;
if (current.u_readers.indexOf(gs.getUserID() > -1 )) {
answer = true;
}
Next, I need to allow write access for one field (a checkbox for concurrence, called u_customer_concurrence).
When the customer checks the box, the customer's name and date will be populated in additional fields. But I need to allow them to be able to check the box.
I have tried an Access Control of field/write/ u_operation.u_customer_concurrence, with the above-mentioned script that works for readers, but no luck.
I have also tried record/write/u_operation.u_customer_concurrence just out of curiosity but that didn't work either.
Any ideas or suggestions are much appreciated!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 11:46 AM
OK, I got it to work.
The solution is:
write / record / u_operation.* / role: itil
write / record / u_operation.u_customer_concurrence / No role required
The field name overrides the * in the first ACL.
My error was that I had write / field / u_operation.u_customer_concurrence / No role required
Once I switched to write/ record, it worked!
Thanks everyone for your input!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2018 12:12 PM
Interesting... it was already working for read access, with the extra ) after the -1; editing it as you suggested made no difference. hmmmm....
Thanks for the suggestion.