Change a form status on save

Forums General discussion Change a form status on save

Viewing 2 reply threads
  • Author
    Posts
    • #23072
      Joel Hjalmarsson
      Participant

      Hi,

      So i have a form status dropdown. It will follow a set progress i.e. A -> B -> when the button is clicked. I was thinking of adding another save button that invokes this. When clicked the button would save the form as usual but i want to change the form status also which is set in a dropdown field. Can this be done in some way>?

    • #23079
      Alexander Bautz
      Keymaster

      You can call a custom function like this example – it will set the status and then trigger the normal save function:
      Add this to a HTML section in a tab:

      <input type="button" value="Button text" onclick="your_custom_function_name();" />
      function your_custom_function_name(){
        setFieldValue("Status","The Status you want to set");
        spjs.dffs.triggerSave();
      }

      Change the field name Status and the value you want to set.

      Alexander

    • #23095
      Joel Hjalmarsson
      Participant

      Thank you that works well

Viewing 2 reply threads
  • You must be logged in to reply to this topic.