Workspace - How to add a specific catalog item to a workspace

Jonathan Monks
Tera Guru

I am sure I'm missing something obvious here but hoping you can help.

 

I have a particular catalog item which I want to add to a custom workspace. I have added a page to the workspace and used the "catalog item" option from the content.

JonathanMonks_0-1768471640024.png

 

On the right, I set the sys_id for the one that I wanted. This then loads the form appropriately on the page.

JonathanMonks_1-1768471688902.png

JonathanMonks_2-1768471725993.png

The issue comes when I submit the catalog item. It works - the workflow does process and finish, the request is created fine. The form, however, hangs. You can see the submit button is now greyed out, but it never moves from there.

JonathanMonks_4-1768472251359.png

 

As I mentioned, I'm sure I'm missing something obvious. Am I missing the right method of doing this?

 

I have tried adding an event handler to move it to a record form after (which I don't really want) instead and also added a client script in that refreshes the form. The refresh works (it just refreshes the page) but it comes with the issue of generating hundreds of instances of the associated workflow.

 

1 ACCEPTED SOLUTION

Jonathan Monks
Tera Guru

Thanks for the replies - this is what I ended up going with. On the catalog item you need refreshing upon submit, create an onSubmit catalog client script.

function onSubmit() {

    // Alert user the form has been submitted.
    alert("This has been submitted and the page will now refresh.");

    // Refresh the form after submission
    setTimeout(function() {
        location.reload();
    }, 1000); // Adjust the timeout value as needed
   
}

This will then show a message that its been submitted, and refreshes the page.

View solution in original post

5 REPLIES 5

Jonathan Monks
Tera Guru

Thanks for the replies - this is what I ended up going with. On the catalog item you need refreshing upon submit, create an onSubmit catalog client script.

function onSubmit() {

    // Alert user the form has been submitted.
    alert("This has been submitted and the page will now refresh.");

    // Refresh the form after submission
    setTimeout(function() {
        location.reload();
    }, 1000); // Adjust the timeout value as needed
   
}

This will then show a message that its been submitted, and refreshes the page.