Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-2809

Calling setRequired() on a RadioButton or CheckBox in SD portal doesn't remove (optional) text from UI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • 5.3.13
    • 5.4.28
    • Behaviours
    • None
    • SR Version: 5.3.13

      JIRA Version: 7.9.0

      SD Version: 3.12.0

    • 1.2

    Description

      Behaviours mapped to the "Use Service Desk mapping" type on a RadioButton or CheckBox custom field still displays "optional" in the customer portal whenever calling setRequired(true) on those fields

      Steps to reproduce:

      1. Create a SD project
      2. Create a RadioButton or CheckBox custom field
      3. Add the field to the customer portal screen
      4. Create a Behaviour with the "Use Service Desk mapping" and mapped to "All request types"
      5. In the initialiser paste this code
        getFieldByName(FIELD_NAME).setRequired(true)
      1. Go to the customer portal in the created SD project and notice the "(optional)" text on the field which shouldn't be there as the field is set to required

      Attachments

        Issue Links

          Activity

            People

              rholban Roland Holban [X] (Inactive)
              rholban Roland Holban [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: