Add field to on portal view

Malo
Tera Contributor

Hello 

 

I want to add a field to the demand portal view, how can I do this? and I also would like a link added to the portal view so that when I click on it,I am redirected to the the backend view of submission demand

 

Thank in advance

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Malo 

 

please provide some kind of screenshot,, what and where you want to add field.

*************************************************************************************************************
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]

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

Malo_0-1704982493485.png

I did like to add the field under number 

Hi @Malo 

 

You can create variable and reference to that field. 

*************************************************************************************************************
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]

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

cloudops
Tera Expert


To add a field to the demand portal view and add a link that redirects to the backend view of submission demand, follow these steps:

  1. Navigate to Service Portal > Portals.
  2. Click on the portal where you want to add the field.
  3. Click on the page where you want to add the field.
  4. Click on the widget where you want to add the field.
  5. In the widget, you can add a new field by modifying the HTML template. You can use AngularJS to bind the field to the data model.
  6. To add a link that redirects to the backend view of submission demand, you can add an anchor tag in the HTML template.
  7. In the server script of the widget, you can get the value of the new field and the sys_id of the demand from the client script.
  8. In the client script of the widget, you can set the value of the new field and the sys_id of the demand.
  9. Save the changes and refresh the portal to see the new field and the link.