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

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.3.13
    • Fix Version/s: 5.4.28
    • Component/s: Behaviours
    • Labels:
      None
    • Environment:

      SR Version: 5.3.13

      JIRA Version: 7.9.0

      SD Version: 3.12.0

    • Critical Points:
      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

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

                Dates

                Created:
                Updated:
                Resolved: