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

User Definable Radio Buttons #1788

Open
ACaicedoBall opened this issue Oct 20, 2022 · 0 comments
Open

User Definable Radio Buttons #1788

ACaicedoBall opened this issue Oct 20, 2022 · 0 comments

Comments

@ACaicedoBall
Copy link

The current C4 paradigm means for a few mutually exclusive boolean questions we have to bug the user with sequential y/n or T/F popups. it would be nice (if possible) to create 1 window, with N user defined radio button groups that are mutually exclusive. i.e. in a group of two if you select 1 its ok, it you select the other as well the first one deselects. a window like the below.

This is doable in multiple GUI frameworks or HTML 5 if IIRC will be the C6 front end. I think it'd be possible to take either a predefined struct type input, or allow varied inputs (maybe comma separated strings, not elegant but it would be straight fwd). slap a string split on ',' and loop some HTML/JS code in there to create the below. Maybe return an index of what was chosen, or the string repr of it.

<_form>
< title > My special input box </title>
for 0 to Num_groups
for 0 to Num_Inputs
<input type="radio" name="GrpName1" value="value1"> Value1
end
end
<
/form>


| < my special Title here> |
| do you like green [x] yes [ ] no |
| do you like eggs [ ]yes [x] no |
| do you like ham [x]yes [ ] no |


another option would be to allow us to add in hooks for JS, like create an interface class we can extend so we can create our own pop ups / functions and take the returns that way. whichever.

be kind, rewind
Ale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant