Skip to main content
Known Participant
July 15, 2022
Answered

Dropdown item "other" prompts for text and then replaces the dropdown with that text

  • July 15, 2022
  • 1 reply
  • 630 views

I don't know if this is even possible or just a stupid idea. I have a field where a location needs to be entered. We have meetings via Zoom regularly, and at various physical sites. What I am thinking is having a dropdown with two selections: "Zoom" and "Other" and I always make the default item an empty space, using just a "space" character.

My idea is that when the user clicks on "Other", a dialog box or something pops up, allowing the user to enter details of the physical location. The dropdown then gets replaced with that text information in the same space and is scrollable/wrap able. The obvious problem is, scrollable is pointless in a printed hard copy. Entering custom text into the dropdown is problematic because of limited space in the field.

Is there a solution to this, or should I just leave it as a regular text field and let the user potentially type the same thing numerous times (as in the Zoom option)?

This topic has been closed for replies.
Correct answer try67

You can place a (read-only) text field next to the drop-down and then fill it with the value the user enters into the alert window. Something like this should work (as the custom validation script of the drop-down):

 

if (event.value=="Other") this.getField("Other Text").value = app.response("Enter the other location:");

else this.getField("Other Text").value = "";

 

[Edited]

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
July 15, 2022

You can place a (read-only) text field next to the drop-down and then fill it with the value the user enters into the alert window. Something like this should work (as the custom validation script of the drop-down):

 

if (event.value=="Other") this.getField("Other Text").value = app.response("Enter the other location:");

else this.getField("Other Text").value = "";

 

[Edited]

Known Participant
July 16, 2022
Is there a way to take this a step further, like I can in Access:

When other is selected for location and a value entered in the prompt, can
that value then be saved to the drop down as a future option in the list?
Can it be custom sorted?


Thanks.
--
Chaplain Derek Godfrey