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

saprem_d
Giga Guru

Hello,



Jakarta release has OOB support for placeholder text. Please refer "Example text" field in the dictionary of the field and add your placeholder text.


Is this field available on navie form. I dont see example text available at all. We are in Jakarta also.



We are not using a record producer, we have built form in back end and calling it in service now form widget using sys_id=-1


Aakash Shah4
Tera Guru

Hi,



Check if the UI type of your client script is selected to Both/All


It has been set to all.



Im guessing its a portal issue. It works fine in backend but not on form widget