Our new Community environment is going to be launched soon!
This means that you will be redirected to the new environment automatically, where you can sign-in, look up - and post topics again. Please note that not all topics will be transferred, so it might occur that you can’t find the topic you were looking for.
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
Login to reply