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.

how to use a graph object for a form action

Featured Replies

I have made a form for editing a record using the standard approach. On the web page i see a button (edit) which does the work (when i click the record is updated).

Now instead of the button i want to use a graphic object (which is a file, forexample calculate.gif).

I have been playing around with href commands but this did not work.

Could anyone show me how to get my graphics object have the same functionality as the edit button in the edot foorm of filemaker.

Thanks

Jitse

You could use a <a> with some Javascript to Submit the Form.

All the best.

Garry

 <input type="image" name="-Edit" src="calc.gif" alt="Calculate" height="16" width="32" border="0"> 

Maybe "submit" instead of "-edit".

Will that work?

instead of the button i want to use a graphic object (which is a file, forexample calculate.gif).

<input type="image" src="calculate.gif" name="-edit">

or possibly

<input type="image" src="calculate.gif" border="0" name="-edit">

Try this:

<form name="myform" action="FMPro" method="post">

.

.

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

</form>

<a href="#" onclick="document.myform.submit();"><image src="calculate.gif" border="0"></a>

All the best.

Garry

Why JS?

I've never tried:

<input type="image"...

I didn't know that it is a real type!

Garry

  • Author

Well actually i have made a stand alone expert systems. I have created a number of buttons using the standard buttons file of filemaker (buttons and dialogs). I have put scripts attached to these buttons

Now i want to have a client server application of the expertsystems with (nearly) the same GUI (i am not using scripts anymore though).

So now i have a nice gif file of a button and want to attach "edit record" form command to it. Having build a number of calculation field this would have the samne effect as the stand alone version with the script.

Jitse

  • Author

Thanks for all your advice, as soon at it is working i will show the code

Jitse smirk.gif

  • Author

This is the simple code that did the job <INPUT TYPE="image" src="calcbutton.gif" NAME="-Edit">

It took me a while to get it working because i am still using claris homepage.

Somehow the code got scrambled. I now switched to BBEdit, now i can go on.

Thanks ! ooo.gif

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.