-
Notifications
You must be signed in to change notification settings - Fork 213
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
[WD-18697] feat: Add "other" option with textarea for radio and checkbox inputs in form generator on u.com #14689
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14689 +/- ##
==========================================
- Coverage 72.32% 72.00% -0.33%
==========================================
Files 120 120
Lines 3404 3425 +21
Branches 1172 1181 +9
==========================================
+ Hits 2462 2466 +4
- Misses 917 929 +12
- Partials 25 30 +5
|
Where can I test the 'other' field textarea? |
@petesfrench There's no currently no form with 'other' option in main branch. |
@muhammad-ali-pk Ah ok, can you make sure to add that to your QA instructions next time. |
@petesfrench Thanks Pete.
Yes that's right., however, some use cases like this one can't be QA'ed on demo as it results in a paradox. Like this functionality is needed by forms currently under constructions to work, but has no example at the moment to verify the functionality. What could have been done was to add a migrated form in this PR., however that would have resulted in scope creep for this PR. |
@muhammad-ali-pk What we usually do is add an example into the PR (you can copy and paste it from one of the forms currently in progress) and then add a note to remove it before merging |
@petesfrench Thanks Pete. I have added example forms and updated the QA steps. |
If you click 'other', type something in the textarea and then deselect it (or select another option for radio buttons), the value of the textarea is still submitted |
On https://ubuntu-com-14689.demos.haus/internet-of-things/smart-city#get-in-touch, the space between the mobile number input and country is too big due to a rogue |
{ | ||
"type": "radio", | ||
"id": "other", | ||
"label": "Other", |
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.
"label": "Other", | |
"label": "Other - please describe", |
As on the live form
"type": "tel", | ||
"id": "phone", | ||
"label": "Mobile/cell phone number" | ||
} |
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.
Missing 'country' here, as on the live form
Done
QA
Also do the same as above for demo/embedded#get-in-touch
Issue / Card
Fixes #WD-18697