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.
Juggernaut

Submitting Multiple records w/ CDML and javascript

Featured Replies

  • Newbies

HI,

Sometime ago I found a script in this forum (see below) that systematically submits all the forms found on the page. However, I've found that this script doesn't always work (i.e., doesn't always submit all the records on that page), if the user is on a mac, and sometimes it just stops submitting records.

These problems do not occur on a PC.

Does anyone have an updated version of this javascript code? I've copied it exactly as I have it in my CDML code. And the CDML code is correct, becuase it works on the PC.

<script>

var count=0;

// function editMe(){

// var size=1+[FMP-RangeSize];

// f[3].submit();

// countdown(count);

//}

//

//function countdown(t){

// static var count=0;

// var f=document.forms;

// f[3].submit();

// count++;

// if (count<size){

// Id = window.setTimeout("countdown();",3000);

// }

// }

// var s=0

// countdown(size);

// }

function countdown(t) {

if (count < (t+1)) {

document.forms[count].submit();

count++;

}

setTimeout("countdown("+t+");",1000);

}

</script>

this is a tough one.

thanks

If you use Netscape with OS X you will be able to open the Javascript consol. From there you will be able to see what the problem is.

All the best.

Garry

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.