How do I disable the submit button on a record producer?

Gary Winslow
Mega Contributor

We no longer will provide a service in our catalog that was generated a record via a record producer.   We want to turn off the "submit" button but leave the item with instructions that redirect users to the new process.   

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

You cannot hide the button without a any manipulations of DOM elements. And that is absolutely not recommended. But you can search at the community for a proper code example. This question has been asked many times.

And with hiding the button you may also irritate users which would raise an incident and say "The form is broken, because the submit button is missing!".

The better user experience is to popup an info message when clicking the submit button.

View solution in original post

5 REPLIES 5

ChrisBurks
Mega Sage

I think there are a few alternatives to this scenario but a quick solution could be:

1) As you suggested - add a notification that says that they will be directed to the new process when clicking submit

2) make any current variables read only (so that they don't waste time filling it out) Or perhaps if there are some variables used in the new process pass them along as you redirect

3) Create an onSubmit catalog client script that will redirect to the desired process and return false. Returning false will prevent the submission and not create a record.

 

I haven't tested it out but I have done something similar. But still there are other alternatives if this one doesn't work for you.