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.

Proper URL for new record creation

Featured Replies

Hi all,

I created an XSLT stylesheet that is a basic web form. It's the first time I've done such a thing. The only point is to accept a user submissions; users can't edit or read existing records.

The problem I'm having is figuring out what URL to use to enable the form to be submitted. For example, I can use:

http://mysite.com/fmi/xsl/addrecord.xsl?-new

But, when I do this, it creates a blank record upon entering the URL, then another record when I hit the submit button (which has the proper data). I imagine I shouldn't be using the -new command in the URL, but if I use any other command, hitting the submit button will not produce new records. Anybody know what I should be doing instead?

Thanks for your help!

Tom

Edited by Guest

There are two ways to submit data.

Either by a HTTP GET, i.e. by specifying an URL as you did, or by HTTP POST, mostly specified through a form in a web page.

You did both one after the other, that's why you got 2 new records.

Just load your page by specifying http://mysite.com/fmi/xsl/addrecord.xsl?-grammar=fmresultset&-process

This will load your page and the XSLT will be processed, without any submit of data.

Then you should be able to hit the submit button and only one record will be created.

It could be that your HTML that specifies the form is wrong; if this is the case please post the code here.

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.