Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Hidden input fields?

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    4
    6
    545
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thomas D last edited by

      Is there any built in way to have input fields hidden on the front-end but shown in the admin site editor?

      1 Reply Last reply Reply Quote 0
      • Daniel Mulroy
        Daniel Mulroy last edited by

        Hi Thomas,

        I've had to do something similar.

        One option is a HTML Source Code block for your input field. Just drag in a block and just put in <input class="hidden"> etc.

        Another option is to drag in a normal form, but add a class like "hide-on-load" and add a javascript snipped to hide that element on load. It'll show in PageBuilder but not when actually loaded.

        @Wassim-Samad something I haven't found a workaround for is exactly this question - how do you show something on PageBuilder but hide in 'real life'? Would be nice if there was a way.

        1 Reply Last reply Reply Quote 0
        • Wassim
          Wassim last edited by

          @ThomasD said in Hidden input fields?:

          s there any built in way to have input fields hidden on the front-end but shown in the admin site editor?

          Hello,

          There's a non builtin way but very easy to do.

          Add a class throught the identification brush named "hidden-live"

          Then drop a CSS embed code and inside do this

          body:not(.pagebuilder-edition) .hidden-live {
            display:none;
          }
          

          As in the pagebuilder, the body has the class "pagebuilder-edition" you can differentiate it with this simple css.

          1 Reply Last reply Reply Quote 3
          • Dick Honing
            Dick Honing last edited by

            @Wassim nice trim! Is there class with which you can show the elements in Page Builder and hide them in Preview?

            1 Reply Last reply Reply Quote 0
            • Wassim
              Wassim last edited by

              Hey Dick, you mean by default ?
              If not you can use my example .hidden-live above

              1 Reply Last reply Reply Quote 0
              • Dick Honing
                Dick Honing last edited by

                @Wassim I already do. Great trip. Thanks!

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post