- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 11:41 PM
Hi,
I have a requirement to make the field assignment_group on the incident table as Read Only, only if its a new record.
Is there any way to make a field read only only if its a new record using UI Policy script? Please dont suggest using client script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 12:08 AM
yes, also pls use the below script
if(g_form.isNewRecord() ){
g_form.setReadOnly("assignment_group",'true'); // single quote was missing
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 11:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 12:04 AM
under Execute is true?
function oncondition() {
if(g_form.isNewRecord() ){
g_form.setReadOnly("assignment_group",true');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 12:08 AM
yes, also pls use the below script
if(g_form.isNewRecord() ){
g_form.setReadOnly("assignment_group",'true'); // single quote was missing
}