Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Field eiditable

Rosy14
Kilo Sage

HI,

 

In native ui fields on the form is editable but in portal if i open the form the fields are not editable. How can i made these non read-only. widget is customized My form.

I tried on catalog/client script but still not working,

function onLoad() {
    //Type appropriate comment here, and begin script below
    var fields = g_form.getEditableFields();
    g_form.addInfoMessage(fields);
    for (var x = 0; x < fields.length; x++) {
        g_form.setReadOnly(fields[x], false);
    }
}
1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron

Hi @Rosy14 

 

Can u try with 1 field and see if it is working as expected?

 

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

Hi @Rosy14 

 

Can u try with 1 field and see if it is working as expected?

 

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Rosy14
Kilo Sage

Not working I tried

Rosy14
Kilo Sage

Yes working now. Thanks