Skip to main content

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.


Reply