[STSMACOM-292] Custom Field: Input Option: Radio button set Created: 30/Jul/19  Updated: 26/May/20  Resolved: 04/May/20

Status: Closed
Project: stripes-smart-components
Components: None
Affects versions: None
Fix versions: 4.0.0

Type: Story Priority: P3
Reporter: Khalilah Gambrell Assignee: maksym_dryha
Resolution: Done Votes: 0
Labels: epam-spitfire, front-end
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: PNG File screenshot-1.png     PNG File screenshot-3.png     PNG File screenshot-4.png    
Issue links:
Requires
is required by UXPROD-2288 Q2 2020 | Custom Fields (for User Rec... Closed
Sprint: eHoldings Sprint 87
Story Points: 8
Development Team: Spitfire

 Description   

As a librarian
I want to create custom field with the input type = radio button set
So that I can track information that requires choosing one option

Radio button group settings

  • Display these settings: Hidden, Field label, Help text
  • Display an [Add option] button Can we display the number of remaining options one can add to the button link text?
  • Click [Add option] button will display a new row under the Options section
  • Option displays the following fields: Label
    • Option Label is required
  • Able to set a default option and able to reset to no default option
    • default to no default option

Settings > Custom field > Radio button Screenshot

Option requirements

  • Option label is a required field AND Option label character limit = 65
  • If a user adds 5 options then disable the Add option button. Display a message [Can only add up to five options.] Only do this if we cannot support displaying a count with the Add option button

Settings > Users > Custom fields View page handling radio button set options

  • Display all options in a MCL as read-only

Acceptance Criteria - Add custom field dropdown

Given I click Add custom field dropdown
When I expand the dropdown
Then the input type = radio button set displays

Given I click Add custom field dropdown
When I select radio button set
Then display a new accordion and show radio button set settings

Acceptance Criteria - Radio button set field settings

Given I have entered [Language] for the radio button set Field label
When I clear Field label field
Then display an inline error message - Field label is required.

Given I have entered more than 65 characters in the radio button set Field label
Then display an inline error message <<#of characters max limit>> has been exceeded.

Given I have created/edited a custom field radio button set [Language]
When I hit Save
AND have not selected the Hidden checkbox
Then the field should display on the record type(s) that I have specified

Given I have created/edited a custom field radio button group [Language]
When I check the Hidden checkbox
AND hit Save
Then the field should not display on any record
AND show on the accordion Language * Radio button set * (Hidden)

Given I enter help text for the custom field radio button group [Commuter Student] on the User Record
When I create/edit a user record
Then display the info icon to the right of [Commuter Student] that contains the help text

Given I have entered more than 100 characters for Help text
Then display an inline error message <<#of characters max limit>> has been exceeded. Please revise.

Acceptance Criteria - Radio button set options requirements - number of options and option labels

Given I am on the Edit Custom field page
When I select the input type = Radio button set
Then allow me to specify up 5 radio button options to display on a record

Given I am on the Edit Custom field page
When I select the input type = Radio button set
AND click Add option
Then I should be able to set an option label

Given I have accessed the custom field Primary affiliated college
AND the input type = Radio button set
When I revise one of the option rows I have previously entered a row
AND hit Save & close
Then the option should be updated

Given I have entered more than 65 characters in the radio button set option label
Then display an inline error message <<#of characters max limit>> has been exceeded.

Given I have entered [Language] for the radio button set option label
When I clear option label field
Then display an inline error message - [Option label is required.]

Given I have entered [Language] for the radio button set Option label
When [Language] has been saved or entered as a option label on another option
Then display an inline error message - [Duplicate option. Please revise.]

Given I have entered several options
Then I should be able to have one option as the default

Given I have entered several options
AND I have set an option as the default
When I no longer want to set an option
Then allow me to reset to no default option



 Comments   
Comment by Khalilah Gambrell [ 30/Jul/19 ]

May need to break up the user story into these stories

  • Input Type
  • Default option behavior
  • Add options / Set display order
  • Remove an option
Comment by Khalilah Gambrell [ 05/Mar/20 ]

Igor Godlevskyi and maksym_dryha, I added the following to this user story

Settings > Users > Custom fields View page handling radio button set options

  • Display all options, codes, and default radio buttons in a MCL as read-only

cc: Oleksii Petrenko

Comment by Khalilah Gambrell [ 29/Mar/20 ]

maksym_dryha and Denys Bohdan, I made the following updates to the story

  • Removed the Required setting (will address in another story)
  • Removed the Default option (will address in another story)
  • Revised the delete option requirements

Please let me know your thoughts.

Comment by Khalilah Gambrell [ 15/Apr/20 ]

Removed Code requirement. Needs backend work.

Comment by Khalilah Gambrell [ 27/Apr/20 ]

maksym_dryha, Владислав Велицкий, and Denys Bohdan, please review the requirements updates.

Comment by maksym_dryha [ 28/Apr/20 ]

Khalilah Gambrell, looks good to me, thank you!

Generated at Thu Feb 08 22:33:11 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.