Skip to content
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

Feature Request: Ability to make selectable lists required #240

Closed
hessorr opened this issue Mar 14, 2023 · 10 comments · Fixed by #262
Closed

Feature Request: Ability to make selectable lists required #240

hessorr opened this issue Mar 14, 2023 · 10 comments · Fixed by #262
Assignees
Labels
enhancement New feature or request in progress

Comments

@hessorr
Copy link

hessorr commented Mar 14, 2023

--textfield has the optional parameter of making the field required. It would be great to also include this parameter on the selectable list menus so getting all types of input from the user is required before allowing the window to be closed.

Thanks!

@bartreardon
Copy link
Collaborator

I presume this is different to using --selectdefault which will pre-set a selected value. It's up to the user to change it to something else but it does force a value.

@hessorr
Copy link
Author

hessorr commented Mar 15, 2023

Yes this is different. In our scenario we have create a form to gather building and department data from the user. We can't pre-set this information but we want to make sure the users make selections on these two drop downs before being able to click the next button and close it. The behavior of the required setting in the text field is exactly what we are looking for - highlighting in red if they try to close out before filling the field.

@adorador
Copy link

+1. I am in a similar situation as hessorr. I would like to have an option for selectable lists to be required for a department list pull down. We have 50+ departments, so we want to make sure that the customer selects their correct department before continuing.

@willriddick12
Copy link

willriddick12 commented Apr 12, 2023

Also looking to use a required setting for a selectable list.

@bartreardon
Copy link
Collaborator

image

image

@dan-snelson
Copy link
Collaborator

Yippee!

@adorador
Copy link

Exactly what I was looking for. Thank you Bart!

@hessorr
Copy link
Author

hessorr commented Apr 19, 2023

This is what I needed! Thank you so much!!

@bartreardon bartreardon self-assigned this Apr 20, 2023
@bartreardon bartreardon added enhancement New feature or request in progress labels Apr 20, 2023
@dan-snelson
Copy link
Collaborator

One word, @bartreardon:

Sweetness!

Screenshot 2023-04-20 at 5 34 23 AM

@GrumpyCatSenior
Copy link

Really really nice work @dan-snelson ! (and of course @bartreardon for making this sweet Dialog available to us)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants