Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Multiple Checkboxes linked to a text box, I need to add another function.

$
0
0

Hello I'm using a form with multiple checkboxes. The checkboxes work fine when applying rawValue.

The issue I'm having is when a checkbox is unchecked.

This happens when my client makes an error by clicking the wrong checkbox.

As they uncheck the box my all the text box information is removed and the client must hit the reset button.

 

How can I add the following functions?:

 

  1. Unchecked boxes will not all the previous information from text box field, it only removes the information applied to that checkbox.
  2. When one of the checkboxes is marked the Check box labled "None" is cleared.

 

Here are my settings:

 

topmostSubform.#pageSet[0].PageArea1.#subform[0].CheckBox6::change - (JavaScript, client)

if (this.rawValue == "A1"){
    TextField7.rawValue = "• Avoid animal exposure; remove carpet, and clean bedding often" + "\n" + TextField7.rawValue;
}
if (this.rawValue == "0"){
    TextField7.rawValue = "";
}

if (this.rawValue == "A1"){
     topmostSubform.Page1.Trig.RowTrig.Triggers.rawValue = "Animal dander/Dust/Mold/Cockroach" + "\n" +  topmostSubform.Page1.Trig.RowTrig.Triggers.rawValue;
}
if (this.rawValue == "0"){
     topmostSubform.Page1.Trig.RowTrig.Triggers.rawValue = "";
}
if (this.rawValue == "A1"){
     topmostSubform.Page1.Trig.RowTrig.Avoid.rawValue = "• Avoid animal exposure; remove carpet, and clean bedding often" + "\n" +  topmostSubform.Page1.Trig.RowTrig.Avoid.rawValue;
}
if (this.rawValue == "0"){
     topmostSubform.Page1.Trig.RowTrig.Avoid.rawValue = "";
}       

 

Thank You,

Arnold


Viewing all articles
Browse latest Browse all 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>