- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2025 01:24 AM
Hi,
I'm trying to add a placeholder in the catalog variable. I used the below mentioned onload client script, but the placeholder is not working on the service portal. Please help me on this requirement.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2025 01:31 AM
Hi @Narmadha PR
Just use the "Example text" field on the catalog variable form to add placeholder message.
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:51 AM
there is no method to make it work for portal.
you can try to use DOM manipulation but that's not recommended.
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
06-16-2025 03:29 AM
@Narmadha PR Nope. It's not possible. However, create two separate fields for those two scenarios and Show/hide the variable as required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2025 01:31 AM
Hi @Narmadha PR
Just use the "Example text" field on the catalog variable form to add placeholder message.
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:38 AM
Hi @J Siva,
Thank you for your response!
I want to change the placeholder value according to different conditions. Example: If I select "yes" in a field then the placeholder should be "www.abc.com", if "no" then the placeholder should be "www.xyz.com". So I need to handle it in scripting. Is there any possible ways?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 03:29 AM
@Narmadha PR Nope. It's not possible. However, create two separate fields for those two scenarios and Show/hide the variable as required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 02:51 AM
there is no method to make it work for portal.
you can try to use DOM manipulation but that's not recommended.
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