I'm having some trouble using updatePhaseField in a start form.
I want to update the options of a field using an API
Any ideas of what to do?
Many thanks!
I found this conversation:
I'm having some trouble using updatePhaseField in a start form.
I want to update the options of a field using an API
Any ideas of what to do?
Many thanks!
I found this conversation:
I did a quick try wtth the following request and it worked for me:
mutation {
updatePhaseField(
input: {
id: "vertical_radio"
label: "some label"
options: ["option1", "option2" ]
required: false
editable: true
}
) {
phase_field {
id
label
options
}
}
}
Note that the whole options value will be updated, meaning that if there were previously values there, they will be replaced by `”option 1”, “option 2”` according to my example.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.