Home › Forums › Quform WordPress › Enable {entry_id} visiblility on the form?
- This topic has 4 replies, 2 voices, and was last updated 8 years, 4 months ago by Ally.
- AuthorPosts
- January 5, 2016 at 9:46 pm #17817transmediacreativeParticipant
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.
January 6, 2016 at 9:53 am #17820AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 6, 2016 at 5:02 pm #17845transmediacreativeParticipantThanks, 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.
- This reply was modified 8 years, 4 months ago by transmediacreative.
January 6, 2016 at 6:43 pm #17847transmediacreativeParticipantI 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>January 12, 2016 at 12:45 pm #17895AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.