Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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
Tera Patron

Hi @Rosy14 

 

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

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Rosy14 

 

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

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

Rosy14
Kilo Sage

Not working I tried

Rosy14
Kilo Sage

Yes working now. Thanks