Jump to content


  • Content Count

  • Joined

  • Last visited

  1. I am not a programmer so I will need some help with what I am trying to achieve. Caspio currently does cacading relationships for listbox and dropdowns… But what I am interested in is: Let’s say I have a parent field which is a drop-down menu style, I would like this to be connected to its child field (which will be a text box). So when the parent field is activated… the child text field becomes activated so text can be typed into it. If not then it stays grayed out or disabled. Hypothetical example: Parent (Dropdown): Do you have children? (Dropdown/Checkbox saying: Yes/No) Child (Textbox): How many? (text box) – this should become activated only if the user selects Yes in the parent field. Sample code I have written so far: var Selection=document.getElementByld("InsertRecordSelection"); var Value=document.getElementByld("InsertRecordValue"); function fun_conditional() if (Selection.checked){ Value.style.display=''; } else { Value.style.display='none'; } Selection.onclick=fun_conditional; When I cut and paste the above code into the footer section of my datapage, it does not work. Any suggestions or ideas please help. Do I have to add any other code into this to make it work? Thank you in advance for your help. Regards.
  • Create New...