- Advolink1Asked on February 07, 2017 at 09:38 AM
Regarding my conditional logic question, I need to be more specific. I need to programatically select certain checkboxes based on values on the form. For example, if Global Rescue Direct Membership is not blank, then check Physician checkbox, Labs checkbox, X-Ray checkbox, and Prescription checkbox. Can this be accomplished with this widget? Can I get to the individual checkbox items and set them independently based on certain conditions?
- JotForm SupportBJoannaAnswered on February 07, 2017 at 10:43 AM
Can you please provide us ID of the form you are working on? Form that you provided on your other thread https://www.jotform.com/70197156336156, is currently unavailable.
It is possible to update fields and pass values inside of the form with conditional logic Update/Calculate Field.
However please note that you can pass values only to fields like Text Box, Email, Text Area or Address field.
More about conditional logic you can find inside of this guide:
Let us know if you need further assistance.
- Advolink1Answered on February 07, 2017 at 11:45 AM
Sure. Here is the form: https://form.jotform.com/70366005453147
- JotForm SupportBJoannaAnswered on February 07, 2017 at 12:30 PM
Unfortunately this is not possible to achieve with Image Checkboxes widget. It would be possible to achieve with regular check box field, but in that case you would need to replace calculation values that you have set inside of your Global Rescue Direct Membership field with options that you would want to be passed to check box field.
Here is my demo form: https://form.jotform.com/70374995480972
I have set my condition like this.
Calculation values of dropdown field are set like this.
Feel free to clone and test my form.
Feel free to contact us if you have any other questions.
- Advolink1Answered on February 07, 2017 at 01:02 PM
Great! I get it! So, is there a way, using the regular checkbox widget, that I can implementthe use of an image? People are so visual, so I tend to use pictures versus words.
- JotForm SupportBJoannaAnswered on February 07, 2017 at 02:30 PM
It is possible to add images to check box field. You can check this thread to see how that can be done: https://www.jotform.com/answers/934239
However in this case it will be hard, and most likely impossible to assign calculation values to dropdown field, because it had to contain HTML tag of image as well. I have tried but I was not able to pass values to checkbox field with images.
Here is my sample form: https://www.jotformpro.com/form/70375207012950
You can clone my form and try to see if you can maybe find some workaround. I will also try to find it and I will let you know if I do.
- Advolink1Answered on February 07, 2017 at 05:14 PM
OK! I found a workaround by making each checkbox value a single checkbox.That piece works fine, but am having difficulty setting default value of each checkbox to "checked". I reverted back to version 3 of Designer and was able to set each checkbox to "Selected" via Properties "Selected" value. However, when I bring up the form, each of the checkboxes are still not checked by default even though I have set it to be "Selected".
The checkboxes appear when, appropriately, conditions are met to unhide each of the checkbox(es).
Is there a CSS code that I can set or something that will set the checkboxes to be selected and keep them that way?