Other input element value disappearing after switching among options

Created on 31 January 2023, over 1 year ago
Updated 28 May 2023, about 1 year ago

Problem/Motivation

After adding an "Other element" to a webform, I think there is an unexpected behavior happening that makes the value for the "other" input field disappears when it supposed not to.

Steps to reproduce

  1. Add a "Other element" to a webform
  2. Configure the element with different possible values
  3. Use the "View" of the webform selecting and filling the other input field with a value.
  4. Switch and select one of the available option and come to select back the other value to see the filled value reappears.
  5. Switch again but select now two of the available options, one after another, and then come to select back again the other value to see the filled value has disappeared.

Proposed resolution

Update the other-element JavaScript file that controls the explained behavior in order to only replace the kept value of the "Other field" when is not empty.

πŸ› Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain pakmanlh Barcelona

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024