Place holder text

brendanwilson84
Kilo Guru

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.";

}

find_real_file.png

However, we are now using service portal and the form widget to create records etc and this does not come over

find_real_file.png

Can this be done?

1 ACCEPTED SOLUTION

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


View solution in original post

16 REPLIES 16

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.


thanks for taking the time  


Pleasure is mine.



Just to add. Can you not see the Example Text when you configure your variable.



find_real_file.png



I can see the help text in my service portal



find_real_file.png


brendanwilson84
Kilo Guru

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


brendanwilson84
Kilo Guru

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"


}