Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I have formatted a page to submit several forms with one submit at the same time or rather sequentially.

I have seen solutions utilizing Javascript to make this possible using a loop to submit the forms one after the other and have coded my page with their suggestions, however I cannot get it to work.

Does anyone have any suggestions?

<script language="JavaScript">

<!--

function editMe(){

var f=document.forms;

var processed=0;

var rangesize=[FMP-RangeSize];

var size=1+[FMP-RangeSize];

for (s=0;s,size; s++){

f.submit();

time(1);

}alert("Please Wait");

}function time(t){

var timme=t+1;

setTimeout('refresh()';timme)

}

//-->

function completed(){

window.location="[FMP-Link: sa]&-format=done2.html&-findall";

}

</script>

<form action="FMPro" method="post" name="controls[FMP-CurrentRecid]" target="frame[FMP-CurrentRecid]">

<input type="hidden" name="-db" value="Surveys.fp5">

<input type="hidden" name="-lay" value="PlainView">

<input type="hidden" name="-format" value="done.html">

<input type="hidden" name="Candidate_id" value="[FMP-CurrentToken:7]">

<input type="hidden" name="Job_order_id" value="[FMP-CurrentToken:1]">

<tr>

<td class="fieldclass" width="25">[FMP-CurrentRecordNumber]</td>

<td class="fieldclass">[FMP-Field:Question]</td>

<td class="fieldclass" width="100">

<select name="Answer">

[fmp-valuelist:valuelist, List=Level]

<option>[fmp-valuelistitem] [/fmp-valuelist]

</select> <input type="hidden" name="-new">

</td>

</tr>

</form>

<iframe name="frame[FMP-currentRecid] id="frame[FMP-CurrentRecid]" height="0" width="0"></iframe>

<a href="#" onClick="editMe();"><img src="Images/Enter_btn.gif" alt="" height="23" width="83" border="0"></a>

I've just tried this, it seems to work for me:

<head>

<script>

   function subForms()

	{

	nAllForms = document.forms.length;

	for (i=0;i<nAllForms;i++)

		{

		document.forms[i].submit();

		};

	}

</script> 

</head>

<body>Hello World

[FMP-Record]

<form action="http://localhost:1154/FMPro" method="post" name="controls[FMP-CurrentRecordNumber]" target="frame[FMP-CurrentRecordNumber]"> 

<input type="hidden" name="-db" value="combotest.fp5"> 

<input type="hidden" name="-lay" value="web"> 

<input type="hidden" name="-format" value="hworld2.html"> 

<input type="hidden" name="Candidate_id" value="[FMP-CurrentToken:7]"> 

<input type="hidden" name="Job_order_id" value="[FMP-CurrentToken:1]"> 

<select name="name">  

<option>Yes

<option>No

</select>

<input type="hidden" name="-new"> 

</form> 

<iframe name="frame[FMP-CurrentRecordNumber]" id="frame[FMP-CurrentRecordNumber]" height="0" width="0"></iframe> 

[/FMP-Record]

<a href="#" onClick="subForms();">Submit</a>

</body>

All the best.

Garry

  • Author

Thanks Garry, I will give it a run through smile.gif Been up typing all night smile.gif

In Kindness

Stephen

  • Author

Garry,

Thank you again. I just tried the code and it works perfectly.

In kindness,

Stephen

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.