I'm trying to update a input field value in the properties pane, based on a radio button selection, but its not changing.
I'm sure it'll be something simple-ish! I've looked about but can't find a solution, hence this post.
If I don't set a default value in the properties of manifest.json file, it sets when I select once but it doesn't change when I switch between the radio buttons.
here's an example of what I've tried:
if(this.properties.radioButton === "radio1"){
textField = PropertyPaneTextField('linkLabel', {
label: "Label",
value: "radio1 selected"
})
}
if(this.properties.radioButton === "radio2"){
textField = PropertyPaneTextField('linkLabel', {
label: "Label",
value: "radio2 selected"
})
}
return {
pages: [
{
groups: [
{
groupFields: [textField]
}
]
}
]
};
Any help would be much appreciated Thanks