Skip to content

Render display_if content only when requested #624

@mboynes

Description

@mboynes

Forms can get out of hand quickly and easily when you use display_if to create content entry workflows. When you build these complex trees, especially ones with repeatables, it takes very little effort for the form to surpass 1,000 input variables. Depending on the server's PHP configuration, a POST of this size could get truncated and data lost.

Presently, anything behind display_if is present in the form, and therefore submitted with the form, but hidden via CSS. One possible solution to this problem would be to build a way to render the display_if content only when requested. Here are a couple ideas to accomplish that:

  • One way or another, load the display_if content in JS instead of HTML. When displaying, build the HTML node.
  • Load the display_if content via ajax.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions