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

Behaviour server-side script for 'required' radio button field is not triggered on form launch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Awaiting Release
    • Low
    • Resolution: Fixed
    • 6.40.1
    • 7.10.0
    • Behaviours
    • SR4j Sprint 140 (7.10.0)
    • 5.3

    Description

      The resolution for SRJIRA-3418 concluded that a field server-side script will always be triggered on the initial form launch.

      If a radio button field is set required via 'Field Configuration', the Behaviour server-side script for that field is not fired until it is interacted with.

      Steps to Reproduce

      1. Create a 'Radio Button' field and add it to the issue
      2. Make sure the field is set as required via 'Field Configuration'
      3. Create a Behaviour, add the mappings, and add the 'Radio Button' field.
      4. Add a simple script such as a log message, and launch the Create/Edit form.
      log.warn 'Hello World' 

      Expected Behaviour

      The script should fire and the log should be logged.

      Actual Behaviour

      The script did not fire and log until interacted with.

      Attachments

        Issue Links

          Activity

            People

              dluksza Dariusz Luksza
              hibrahim Helmy Ibrahim
              Votes:
              12 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: