- 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
09-14-2017 03:43 AM
That's great. You figured some way out.
Could you please mark the answer correct and close this thread so that others having same doubt will benefit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2017 03:49 AM
thanks for taking the time

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2017 03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2017 04:01 AM
Hi
I am not using a record producer. I am using the form widget to display the form in the portal.
Basically calling my backend form into the form widget using sys_id=-1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2017 04:02 AM
In option schema of form widget that is displayed on page
{
"disableUIActions": {
"value": "",
"displayValue": ""
},
"showFormView": {
"value": "true",
"displayValue": "true"
},
"table": "table name",
"sys_id": "-1"
}