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.

Need to Add Editable field in portal

Snow47
Kilo Contributor

Hi All,

Need a help to add new field called "Time to complete" field (string)  in portal which should be editable  , helpdesk/end user has to update  this field (like 2 days , 4 days....etc any string) , 

These has to update in incident form , kindly help me where can i update code either in existing widget or new widget .

i added below server script , but this field read only , i want this editable.

 

var fields = $sp.getFields(gr, 'number,state,priority,sys_created_on,u_time_to_complete');

 

find_real_file.png

 

 

find_real_file.png

9 REPLIES 9

Snow47
Kilo Contributor

Thank you Cuong , 

I have updated  HTML and Server script , but i could not see the status field editable mode. 

Its visible wired 

find_real_file.png

Hi Snow,

 

Can you show me your script?

 

You can find the useage of edtiable field as below article:

SN Editable Field

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Cuong Phan

DXC Consultant.

 

Regards,
Cuong Phan
ServiceNow Technical Lead

I have updated similar details , please find attached widget which i used .

Snow47
Kilo Contributor

i got a solution -

My requests widget server script 141 line  modify  to  

 

record.url = { id:'form', table: gr.getRecordClassName(), sys_id: record.sys_id};

 

Incident form directly open

Hi 

Could you please share the complete code.

I have a requirement to edit the delegate form fields from the custom widget.