Forums

Forums / Developing Portals / Workflow Submitting Form even when Submit Form Unchecked

Workflow Submitting Form even when Submit Form Unchecked

7 posts, 1 answered
  1. Eric Mann
    Eric Mann avatar
    59 posts
    Registered:
    16 Oct 2020
    15 Apr 2021
    Link to this post
         Added a simple on demand workflow to a form and left Submit Form unchecked yet workflow still submits form. I've tried adjusting the Pre / Post and both Pre/Post Submit and that doesn't appear to make any difference as form submits in all three scenarios. 
  2. Vishal Kumar
    Vishal Kumar avatar
    1 posts
    Registered:
    23 Sep 2020
    05 May 2021
    Link to this post
    Hello Eric,

    Workflow is working as expected. When the Submit Form property is false on workflow, It is not submitting the data and only executing the workflow.

    To keep the form open on workflow submit, set the page model property ShowFormOnSuccess to true. 

    Thank you,

    Vishal


    Last modified on 05 May 2021 16:05 by Vishal Kumar
  3. Eric Mann
    Eric Mann avatar
    59 posts
    Registered:
    16 Oct 2020
    05 May 2021
    Link to this post
    This method worked. Is there a simple way to trigger workflow button using Rules Manager or JavaScript? 
  4. Josh
    Josh avatar
    47 posts
    Registered:
    01 Jun 2018
    Answered
    05 May 2021 in reply to Eric Mann
    Link to this post

    Hello Eric,

    I am happy to hear this solution was adequate! It is definitely possible to trigger the workflow button via JavaScript or using the Rules Manager.

    Using the Rules manager, you could use the Run Script Action. The script would use jQuery or vanilla JavaScript to trigger the click event on the target workflow button, it will just require you to know the unique tpc-id of the button (FieldName).

    The script would look something like the following (where workflow is your buttons unique FieldName):

    $("[name=workflow]").click()
    

    Of course this can also be used without the rules manager in an embedded script.

    Please let me know if you have any other questions!

    Cheers,
    Josh

     

  5. paulchinky50 paulchinky50
    paulchinky50 paulchinky50 avatar
    2 posts
    Registered:
    20 Jul 2021
    20 Jul 2021
    Link to this post
    This method worked.
  6. paulchinky50 paulchinky50
    paulchinky50 paulchinky50 avatar
    2 posts
    Registered:
    20 Jul 2021
    13 Aug 2021
    Link to this post
    Thank you.. https://get-mobdro.com 
  7. Kerillos Kamel
    Kerillos Kamel avatar
    17 posts
    Registered:
    24 Jun 2022
    08 Sep 2022 in reply to Josh
    Link to this post
    Hi Josh, I'm trying this on the Rule Manager but the flow doesn't fire at all ? also I don't want to use the submit button because I just need to fire the WF without submitting the Form
7 posts, 1 answered