You are viewing limited content. For full access, please sign in.

Question

Question

Cancel webpage

asked on December 5, 2018

Is it possible to create a new webpage similar to the submission page that directs users to if they cancel a form?

0 0

Replies

replied on December 7, 2018

Hi Blia,

 

How do the users cancel a form for you? You can redirect users on the 'Thank You' page to a different website. 

Are you storing form data in a database and then doing a lookup for which ones to cancel? If so, you can just create a separate process to do this. 

Thanks,

Chris Cartrett

0 0
replied on December 11, 2018

Hi Chris,

I created a HTML custom cancel button and was thinking of applying javascript to direct users to a web page that says "Your form has cancelled (not submitted).  To reload the form, click here: [form link]."

The use case for this button is simply to cancel and close out the form instead of submitting.  It is not intended to close out/cancel a running business process at all.  Let me know if you need further explanation.

Thanks,

Blia

0 0
replied on December 11, 2018

I see. I don't think you need a custom button.

Just have one of your buttons be 'Cancel'.

When a user clicks it have it direct them to another User task with your message "Your form has cancelled..." with link.  

Hide the buttons on that page. This will make it feel like a stand alone web page. Hide the buttons with:

$('div .approval-wrap').hide();

In the process designer, place a timer on the above cancal step. Add a terminate event onto the timer. This will kill this process after x minutes, whatever you define.

Now get in there and figure it out! Best of luck!

0 0
replied on December 12, 2018

Can you help point me to how or where I can specify more button options on the starting form?  Correct me if I'm wrong but your suggestion occurs after the starting event (submission) has already been met?  In  the use case, the form doesn't get submitted, it is cancelled so no actual submission is made.

1 0
replied on December 12, 2018 Show version history

In my example the form does get submitted, but then is terminated by the timer. 

You can edit the buttons used in the Process Diagram when you add a User task and then go to its properties.

 

Here is another option:

Create a custom html field with whatever content you want to appear on your "new web page".

You will need some javaScript to tell the page to write the custom html content to a new browser tab:

  $('#[ID of custom html field] a').click('a', function(e){
    var x=window.open();
    x.document.open();
    x.document.title='[title of your new tab]';
    x.document.write('<html><head><title>[title at top of your new tab]</title><style type="text/css">');
    x.document.write('.li{margin: 15px 0;}');//adds CSS to the new page
    x.document.write('</style></head><body>');
    x.document.write($('#[ID of custom html field]').html()); //pulls the ol tag and adds to new window
    x.document.write('</body></html>');
    x.document.close();

swap out anything inside the [] (there are 4) characters with your elements.

^this won't close the original page, but will open a new tab.

Hope this helps. 

0 0
replied on March 1, 2019

Hi Blia, 

I think you are right, Chris' example would work for user tasks, but not a message start event. Your approach sounds valid though. The Thank You page only appears when the form is actually submitted. If you added your own cancel button, you would need to have that link to your own custom cancel page. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.