Allow to edit column in portal

Amit_H
Tera Contributor

Hi,

 

Is it possible to allow edit of variable in portal after submitting the RITM? If yes then how?

2 ACCEPTED SOLUTIONS

Runjay Patel
Giga Sage

Hi @Amit_H ,

 

It is possible, you need to edit your portal page and remove the existing widget and add "sp-variable-editor " widget in your portal. This will allow user to edit the variable post submission.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

View solution in original post

Hi @Amit_H ,

 

You can use client script to make field read only and editable based on user belongs to group.

if(g_user.getUserID(isMemberOf('GROUP')))
g_form.setReadonly('filed name', false);
else
g_form.setReadonly('filed name', true);

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

View solution in original post

3 REPLIES 3

Runjay Patel
Giga Sage

Hi @Amit_H ,

 

It is possible, you need to edit your portal page and remove the existing widget and add "sp-variable-editor " widget in your portal. This will allow user to edit the variable post submission.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Thanks @Runjay Patel it worked!

 

Also for i want to make it editable only for one business group for rest it should be read only.

Hi @Amit_H ,

 

You can use client script to make field read only and editable based on user belongs to group.

if(g_user.getUserID(isMemberOf('GROUP')))
g_form.setReadonly('filed name', false);
else
g_form.setReadonly('filed name', true);

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------