How to change images in one field based on answers in earlier fields?

  • Profile Image
    inteez
    Asked on November 06, 2017 at 01:32 AM

    Hi everyone,

    I need to change answer images in a question - let's say question #5- based on answers from question#2 and #3.

    How can I use conditions to achieve that? Can a widget help with this?

    Thanks.

  • Profile Image
    Nik_C
    Answered on November 06, 2017 at 05:03 AM

    You can do that by adding additional fields and then conditionally show/hide them, for example:

    1) Let's say you have these two blocks:

    1509962388Screen Shot 2017-11-06 at 11.0

    And you want to show each, based on what is selected in this field:

    1509962469Screen Shot 2017-11-06 at 11.0

    2) You can create conditions like this:

    1509962587Screen Shot 2017-11-06 at 11.0

    You can check my test form here: https://form.jotform.com/73091838451965

    Let us know if that could work for you.

    Thank you!

  • Profile Image
    EltonCris
    Answered on November 06, 2017 at 09:30 AM

    Thanks for the clarification. We completely understand what you want now. Unfortunately, we do not have a widget with that functionality. The only workaround is to predefined all those fields and show/hide them via conditions similar to what my colleague has offered. I understand it's going to be labor intensive but it would definitely work. I'm afraid this is the only workaround at the moment. If we can be of further help, just let us know.

    By the way, there is a close, almost similar widget but the downside is that it does not have conditions which means it can't take previously selected images. I am referring to this widget https://widgets.jotform.com/widget/image_choices.

    Thanks

  • Profile Image
    inteez
    Answered on November 06, 2017 at 09:43 AM

    Thanks for your reply Elton.

    I can tinker with programming. Can I create a widget to achieve the desired outcome?

    If so, is there documentation to do so?

    Thanks

  • Profile Image
    Kiran
    Answered on November 06, 2017 at 11:32 AM

    If you want to create a widget, you may create one from the following URL.

    https://developers.jotform.com/

    The API documentation is available at http://api.jotform.com/docs/. If you need any assistance with the API, you may email at api@jotform.com

    Thank you!