cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adobe Forms CheckBox on Condition

Jah3zzi
Explorer
0 Kudos
964

Dear Devs,

I need a little advice on how to solve this seemingly simple yet tricky topic.

As shown in the image, I need to conditionally control these 3 checkboxes based on a condition.

These checkboxes are grouped inside a subform, which I've bound to my structure VIQMEL.

Jah3zzi_0-1731941131120.png

Objective:

  • If VIQMEL-QMART = 'Z1', then only the first checkbox should be "checked."
  • If VIQMEL-QMART = 'Z2', then only the second checkbox should be "checked."
  • And so on for the last one.

Do you know how this can be managed?

Thank you so much!
Gianni

Accepted Solutions (0)

Answers (1)

Answers (1)

Ryan-Crosby
Active Contributor

Hi Gianni,

Create a hidden field named QMART that is bound to VIQMEL-QMART inside subform BOX_GREY.  Set the checkboxes so they are unbound and calculated, and use the following Javascript for each field, and of course the string value would change for each checkbox.

this.rawValue = this.parent.QMART.rawValue == "Z1" ? 1 : 0;

 

Regards,

Ryan Crosby