New topic Closed topic
avatar image
1
Form with multiple actions (old page builder)
By Created , last editted

Hi,

I'm trying to create a form that has two buttons; an approve and reject button. Based on which button is clicked, it should execute either an API connection confirming this status change to approved or rejected. These both need a different endpoint.

something like this:

However, I can't get this to work. My thinking is I need one of two things,
1. link each button to a different action and have this comment be transferred as an input value (but this won't work since the button needs a GET endpoint instead of POST) which seems to result in a null value for the input variable.
2. Have a condition in the endpoint that will either pass or fail based on which button is used. But I can't achieve this, as I can't give the button a value that I can use as input variable for the action.
I can do it with a multiple select, but this does not meet the requirements for styling.
If anyone knows how to achieve either of these options, or has an alternative suggestion, I would love to hear that.

Thanks!,

Tjerk



Hi,

I'm trying to create a form that has two buttons; an approve and reject button. Based on which button is clicked, it should execute either an API connection confirming this status change to approved or rejected. These both need a different endpoint.

something like this:

However, I can't get this to work. My thinking is I need one of two things,
1. link each button to a different action and have this comment be transferred as an input value (but this won't work since the button needs a GET endpoint instead of POST) which seems to result in a null value for the input variable.
2. Have a condition in the endpoint that will either pass or fail based on which button is used. But I can't achieve this, as I can't give the button a value that I can use as input variable for the action.
I can do it with a multiple select, but this does not meet the requirements for styling.
If anyone knows how to achieve either of these options, or has an alternative suggestion, I would love to hear that.

Thanks!,

Tjerk


Answers
Sort by:

This topic is closed.