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.

Using an image for submit button

Featured Replies

A simple question:

XSLT / CWP

I want to use an image instead of the usual type="submit" button in a form.

So instead of...

input name="-find" type="submit" value="edit"

I want to use...

input name="-find" type="image" src="http://www.whatever.com/images/whatever.jpg"

At the moment this does not work. Any ideas?

Both examples can be enhanced. You should split name="-find" and type="..." in two input tags, then also the submit in the first example works if you just hit the return key.

So, in the first example, standard button:

<input type="hidden" name="-find" value="anything">

<input type="submit" value="Go">

In this example, the name attribute in input type="submit" should only be used if you many different submit buttons that should differentiate the data to be submitted.

Second example, graphical button:

<input type="hidden" name="-find" value="anything">

<input type="image" src="http://www.whatever.com/images/whatever.jpg" alt="some_explanatory_text">

  • Author

Thanks Martin

I did what you said, but still having problems...

This works:

input type="submit" value="continue"/>

but if I replace it with this line:

input type="image" src="http://www.whatever.com.au/images/Continue.gif"/>

It doesn't work.

  • 2 weeks later...

Hello,

I think I'm in late but I will answer to your question anyway..

try to give your < input type="img" etc../ > tag the name '-token'

< input type="img" src="src.gif" name="-token" alt="submit"/ > ??? when a HTML form is submitted with 'get' method, the query contains the 'coordinates' of the image used to send data, if you specify '-token' as name of the image the resulting query will be 'accepted' by the FM web engine because '-token' is a valid query string param (it will finally looks like '-token.x=30&-token.y=30).

I hope this can help you!

Bye.

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.