Show name in subform headers

Comments

3 comments

  • 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.

    https://pastebin.com/MdX6LLPj 

    0
    Comment actions Permalink
  • 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

    0
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink

Please sign in to leave a comment.