Comment attribuer des valeurs aux images ?

  • Média Softs
    Demandé le 31 décembre 2024 à 20:08

    comment utiliser cette fonction avec des images plutôt que du texte ?

  • Victorino_S Support Team Lead
    Répondu le 1 janvier 2025 à 06:39

    Hi Média,

    Thanks for reaching out to Jotform Support. Our French Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in French, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question. If you are looking to use images in the Multiple Choice or Single Choice elements, unfortunately, it is not possible. A workaround is to use the Image Checkboxes widget to allow users to select multiple options as images or the Image Radio Buttons widget to allow users to only pick one image from the list in typical radio-button logic. Another widget is the Image Picker widget to allow users to select images on your forms.

    But, if you are looking to assign a value to the images of any of the widgets mentioned, you can use the Update/Calculate Field conditional logic to assign a value to the selected image. Let me show you an example using the Image Picker widget:

    1. Add a Short Text element to your form and use it to assign a value to the selected image from the Image Picker widget.
      Comment attribuer des valeurs aux images ? Image 1 Screenshot 50
    2. In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.
    3. Click on Conditions on the left side of the screen.
    4. Select the Update/Calculate Field conditional logic.
      Comment attribuer des valeurs aux images ? Image 2 Screenshot 61
    5. Set up the Update/Calculate Field conditional logic to assign a value to the created Short Text element. The target value will be based on the image label from the Image Picker widget.
      Comment attribuer des valeurs aux images ? Image 3 Screenshot 72


    You can test my demo form or clone it to see how the form is set up. Here is a sample screencast to see an example:

    Comment attribuer des valeurs aux images ? Image 4 Screenshot 83

    Give it a try, and let us know how it goes.