add a popup message onSubmit on a record producer.

Jen11
Tera Expert

I have the following record producer which works fine.  I would like add a popup once clicked on submit something like 'Thank you for your submission'  please help on where and how i can add that.  

 

 

var notes = "Campus: " + producer.u_campus_incident.getDisplayValue();
notes += "\nEquipment ID/Printer Tag Number: " + producer.u_equipment_incident.getDisplayValue() + "\nSelect affected application: " + producer.Select_affected_application.getDisplayValue() + "\nPlease describe your issue below: " + producer.Please_describe_your_issue_below;
current.work_notes = notes;
var caller = gs.getUser();
current.type = 'self-service';

current.short_description = producer.short_description;

current.opened_for = producer.Requested_for;

 

thank you.

7 REPLIES 7

You would add this to an onSubmit client script and set the "Catalog Item" to be your record producer. find_real_file.png

Jaspal Singh
Mega Patron
Mega Patron

Hi Jen,

 

Did you check link.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Pooja Mahajan
Tera Contributor

You can write business rule to show message after submission of the record.
when -> before

insert -> true

condition -> contact type == self-service

script: 

(function executeRule(current, previous /*null when async*/) {
          gs.addInfoMessage("Your ticket has been created. Ticket ID: " + current.number);
})(current, previous);