Toggle hide fields/headings

Forums Dynamic Forms for SharePoint Toggle hide fields/headings

This topic contains 3 replies, has 2 voices, and was last updated by  Bryan Waldrop 9 months, 2 weeks ago.

  • Author
    Posts
  • #19965

    Bryan Waldrop
    Participant

    I would like to write a function to conditionally hide show fields and headings rather than write multiple rules. I see that it is possible to unhide,true/false tabs but is there a ways to call fields and headings?

  • #19975

    Bryan Waldrop
    Participant

    I figured out the field:
    $(spjs.dffs.fields[“HRR_x0020_Refresh”]).show();

    Still having trouble figuring out the same for heading.

  • #20001

    Alexander Bautz
    Keymaster

    If you use the dev tools (right click > inspect) you can find the ID of the heading

    . In general, it has ID in this format:

    jQuery("#dffsHeading_YOUR_HEADING_UNIQUE_ID").show();

    Change “YOUR_HEADING_UNIQUE_ID” with your heading unique id from DFFS backend.

    Alexander

  • #20092

    Bryan Waldrop
    Participant

    Thank you!

You must be logged in to reply to this topic.