Skip to main content
Participant
October 1, 2024
Answered

Liste déroulante

  • October 1, 2024
  • 2 replies
  • 755 views

Bonjour, est-ce possible de créer une liste déroulante et d'avoir autre chose qui s'inscrit selon le choix. Par exemple, l'utilisateur choisi « Maladie » dans la liste et ça inscrit le chiffre 1 dans la case au relâchement ou bien, l'utilisateur choisi Québec dans la liste et ça inscrit QC dans la case. Merci beaucoup»!

This topic has been closed for replies.
Correct answer try67

Under the field's Properties - Format - Custom - Custom Format Script.

2 replies

Participant
October 2, 2024

Nice

 

try67
Community Expert
Community Expert
October 1, 2024

In the same field? Yes, although it's a bit tricky to implement, as I assume you'd want it to revert back to the original values if another option is selected...

One thing you can do is use a Format script to change what the value looks like, without actually changing it.

An example of that would be:

if (event.value=="Quebec") event.value = "QC";

Make sure to tick the option to commit the selected value immediately for it to work properly, though.

Participant
October 1, 2024

Thank you for your response. We go a long way with me. Where should I put the script? Thank you so much!

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
October 1, 2024

Under the field's Properties - Format - Custom - Custom Format Script.