Add Dynamic single line text variable in Service Portal

salu
Mega Guru

Hello Experts,

Can some one please give an solution for my issue.

I have a single line variable.My requirement is need to add multiple data in to that field.It's not reference field so I cannot use glide_list.

They don't need it as comma separated also..

How can we achieve it?

Thanks

Saranya

1 ACCEPTED SOLUTION

Info from Share (i have attached the files as well):



With this update set I have setup a widget that you can apply to a catalog variable to create a dynamic input table of information. This widget gives flexibly in setting the title, columns and structure of the table to input data. This table can be made to limit the number of rows or allow for the user to create an endless number of rows to input their data. In short, this gives you the ability to create a spreadsheet type of variable for users to input their data.



When the request is submitted the table data is written into an HTML variable for display on request items along with a JSON variable that can be used for processing the raw data. I set this up so that you can use the widget both for display of the variable table but also edit the definition when you are logged on as an administrator.


View solution in original post

48 REPLIES 48

Hello Lars,



I have two type of incidents.


First call resolution Incident


Working Incident.



For FCR Incident when user select the option it will get resolved in the backed and working incident am OOB submit button.



On my custom submit button am calling a script include and get it resolved.


Thanks


Saranya


larstange
Mega Sage

It should not be a problem achieving both using the OOB submit button.



You can set current.state in the script in the record producer based on the values entered in the variables.



I don't think you will get it to work properly using your own button


Hello Lars,


I get it worked in script include as well as business rule.



Business rule



(function executeRule(current, previous /*null when async*/) {




  current.work_notes = ("[code]" + current.variables.html_output + "[/code]" );


  current.update();




})(current, previous);



Thanks


Saranuya


Hi guys,



I am also using this widget in one of our catalog items. I'm running into the following issues:



1. How do I get rid of the json output on Service Portal? I have a Catalog UI Policy to hide this but it only works in the native UI. I've set the Policy Type to "Both".



find_real_file.png


2, The html_output is a variable of HTML type. This doesn't seem to display on the Portal.



Any help is greatly appreciated.



Thanks


Regina