How to access "child" values from "Parent" SharePoint fields
Posted: 19 Dec 2014
I can't seem to figure out how to dynamically access the child values for SharePoint fields that have multiple values.
For example:
Checkbox field: If I have 2 (or more) checkbox values for ONE "Parent" Checkbox SharePoint field, how do I access the values of the various "child" checkbox values so that I can make the form perform certain actions depending on which checkbox (or more) are checked?
Date AND Time field: The SharePoint Date and Time field populates with THREE values: Date, Hour, and Minute. How do I access the "Hour" field and the "Minute" field so that I can pre-populate those boxes with the current hour and minute?
Radio button: If I have a Radio button SharePoint field, how do I access the multiple choices a user can make on the single Radio box?
I tried this solution: viewtopic.php?f=4&t=44 but it did not work.
I tried this solution: viewtopic.php?f=4&t=154 but it only works by checking the value of ONE "child" value. I need to dynamically be able to access any (or all) of the child values.
In HTML this is easy: document.getElementById("childValue") allows you to access and sub element directly.
Thanks!
For example:
Checkbox field: If I have 2 (or more) checkbox values for ONE "Parent" Checkbox SharePoint field, how do I access the values of the various "child" checkbox values so that I can make the form perform certain actions depending on which checkbox (or more) are checked?
Date AND Time field: The SharePoint Date and Time field populates with THREE values: Date, Hour, and Minute. How do I access the "Hour" field and the "Minute" field so that I can pre-populate those boxes with the current hour and minute?
Radio button: If I have a Radio button SharePoint field, how do I access the multiple choices a user can make on the single Radio box?
I tried this solution: viewtopic.php?f=4&t=44 but it did not work.
I tried this solution: viewtopic.php?f=4&t=154 but it only works by checking the value of ONE "child" value. I need to dynamically be able to access any (or all) of the child values.
In HTML this is easy: document.getElementById("childValue") allows you to access and sub element directly.
Thanks!