Show name in subform headers



  • Avatar
    Karl Makatenas

    It's only possible to do this with JavaScript because the label doesn't allow variables.

    Here's some code I wrote a while back to automatically hide a section if all the checkboxes were checked.  The second function probably answers your question directly, but I included all of it. 

  • Avatar
    Richard Therrien

    Hi Karl, seems like it works to bring in the label, but id be looking to bring in he text from a text box within the subform im having issues with it still

  • Avatar
    Karl Makatenas

    That would just be a targeting issue, so instead of grabbing the label, try something like this (untested pseudocode):

    textNode = $("#FieldInternalName").eq(index);
    text = textNode.contents().text();

    And delete the line that removes the parent element.

Please sign in to leave a comment.