Add NPS Survey template

Closes #356
This commit is contained in:
Baptiste Arnaud
2023-03-03 17:21:02 +01:00
parent 79e5aedf00
commit 852cc73511
5 changed files with 767 additions and 21 deletions

View File

@@ -102,11 +102,13 @@ export const RatingInputSettings = ({
initialValue={options.isOneClickSubmitEnabled ?? false}
onCheckChange={handleOneClickSubmitChange}
/>
<TextInput
label="Button label:"
defaultValue={options.labels.button}
onChange={handleButtonLabelChange}
/>
{!options.isOneClickSubmitEnabled && (
<TextInput
label="Button label:"
defaultValue={options.labels.button}
onChange={handleButtonLabelChange}
/>
)}
<Stack>
<FormLabel mb="0" htmlFor="variable">
Save answer in a variable: