burger menu icon
WillMaster

WillMaster > LibraryWebsite Development and Maintenance

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Template TimeSaver- Master Form V4

When creating templates for Master Form V4 (email or database) that will be accessed by your webpage form, the "place holder" is derived from the form field name on the form.

It is important that form field names/ placeholders are exactly the same.

Here's a quick way to grab all those form field names.

Place this short JavaScript below the form. It will print the form field names, in the order they appear, one name per line.

<script type="text/javascript" language="JavaScript"><!--
document.write('<pre>');
for (var i = 0; i < document.FormName.elements.length; i++) { 
   document.write(document.FormName.elements[i].name + "\n")
   }
document.write('</pre>');
//--></script>

Both instances of "FormName" in the JavaScript must be replaced with the name assigned to the form. That would be the name="________" attribute in the <form...> tag. (If your form doesn't have a name, it will need one to use this JavaScript.)

When you have finished making your templates for your form, remove this JavaScript and upload the page to your server.

Note: This JavaScript could be used for forms other than those used by Master Form V4, too.

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

Support Area – Ask Your Question Here

The "Code in articles help" forum at the Willmaster.com support area is the place to get information about implementing JavaScript and other software code found on Willmaster.com

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

Need Custom Software?
Click to
tell us about
your project.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2026 Will Bontrager Software LLC