Record Producer Clear form and Stay on Submit

James Michaels1
Giga Expert

I have created a record producer and it shows up and creates records properly. The problem is that by default, on submission it redirects to the service catalog. I would like it to create the record and then stay on the same page with the form cleared. I tried redirecting back to the existing page but that just causes the page to nest within the IFrame. How would I go about clearing the form and staying on the same page upon submission?

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

You should just have to put a line like this in your producer script field.



producer.redirect = 'com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9';


View solution in original post

3 REPLIES 3

Mark Stanger
Giga Sage

You should just have to put a line like this in your producer script field.



producer.redirect = 'com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9';


hi mark,

old thread, but wondering if there are any dependencies for this to work as you suggested. When I submit the form, the INC itself gets loaded in the iFrame.

product.redirect = 'com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=<MY_SYS_ID>&sysparm_domain_restore=false&sysparm_stack=no';

Thanks
Patrick

James Michaels1
Giga Expert

Perfect! Thank you.