- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2017 02:59 AM
Hi Guys
We have a client script for place holder text which works fine on back end form, naive UI.
function onLoad() {
//Type appropriate comment here, and begin script below
var eta= g_form.getControl('u_eventname');
eta.placeholder = "test.";
}
However, we are now using service portal and the form widget to create records etc and this does not come over
Can this be done?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2017 03:12 AM
I guess the g_form.getControl() method is not supported by Service Portal
You can check this link which shows the client side API's which can be used in Service Portal.
It does not contain that method
Service Portal and client scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2018 12:41 PM
Our organization is on the Kingston version, and the method g_form.setFieldPlaceholder('field_name', 'Example text') works on native forms in the Service Portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 01:36 AM
one question, if i want to create this ghost/placeholder text for 8 fields in incident form, so i need to create 8 client script?/ or any other way?