- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 09:55 AM
Hello developers,
I have used two showFieldMsg for same variable as i needed the field msgs to be in different lines.
g_form.showFieldMsg('varName', 'message.', 'info', 'true');
g_form.showFieldMsg('varName', 'Reason:due to this', 'info', 'true');
Now based on change of requester for i need to hide this showFieldMsg. which should hide both lines when i use
g_form.hideFieldMsg('varName'); it is only hiding one line, Please suggest. Any help is highly appreciated. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:11 AM
Hi @servicenow14710 ,
Did you try hide line twice, if it works or not.
g_form.hideFieldMsg('varName');
g_form.hideFieldMsg('varName');
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:11 AM
Hi @servicenow14710 ,
Did you try hide line twice, if it works or not.
g_form.hideFieldMsg('varName');
g_form.hideFieldMsg('varName');
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:23 AM
Thanks! surprisingly it worked, Thanks for the suggetsions