-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LTD-5728] Prevent 'other' radio showing as only option for advice picklist fields #2278
Conversation
5e529a4
to
3711eff
Compare
9e64ed2
to
2d230f6
Compare
approval_radios = forms.ChoiceField( | ||
label="What is your reason for approving?", | ||
required=False, | ||
widget=forms.RadioSelect, | ||
choices=(), | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh this was included in this form by mistake before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I believe so. We do not need it at this stage in the wizard
2ff1228
to
362e720
Compare
Radically changed structure subsequent to review
362e720
to
48ca460
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all looks good to me
… have no picklist options
…ere are no picklist conditions
48ca460
to
8956e15
Compare
Aim
This change ensures that the "Other" option is suppressed when there are no picklist options to choose from for picklist fields in the advice flows. In this situation, rather than seeing the "Other" radio input and an empty textbox, the user just sees the textbox. This should be much clearer.
LTD-5728