- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2023 11:07 PM
Hi All,
I have a requirement where I need to hide couple of fields to hidden in the create new form. then once the record is created, I want those two fields need to be visible how to do this please provide any pointers on this. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2023 11:11 PM
you can use onLoad client script on that table and check if it's new record or not
function onLoad(){
if(g_form.isNewRecord()){
// hide your fields since it's new record
}
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2023 11:11 PM
you can use onLoad client script on that table and check if it's new record or not
function onLoad(){
if(g_form.isNewRecord()){
// hide your fields since it's new record
}
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2023 11:20 PM
@Kruthik M Shiva Write onload client script as below. I have written on incident table. please change the table based on requirement.