Enable {entry_id} visiblility on the form?

Home Forums Quform WordPress Enable {entry_id} visiblility on the form?

This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17817
    transmediacreative
    Participant

    I’ve decided to just use the {entry_id} as the unique form number…the only problem is that, while I realize I can have it show up in an email, I have yet to find a way to get it to show up on the form itself. What I’d like to do is have the entry ID of a form be visible on the form prior to submission.

    #17820
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #17845
    transmediacreative
    Participant

    Thanks, that would be amazing, sounds like exactly what I’m looking for! I’m unsure which PHP file I need to edit though or how I would get this to show up on a form.

    #17847
    transmediacreative
    Participant

    I actually figured out how to do what I wanted by using this bit of JavaScript code:

    <html>
    <head>
    <script type=”text/javascript”>
    window.onload=generateRandomNumber;
    function generateRandomNumber(){
    var n = 9999999;
    var number = Math.floor(Math.random()*n)+1;
    document.getElementById(“randomNumber”).innerHTML = number;
    }
    </script>
    </head>
    <body>
    <h1>
    Random number generated =
    <h1 id=”randomNumber”></h1>
    </h1>
    </body>
    </html>

    #17895
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy