Sign in to follow this  
Followers 0

Browser Autofill


2 posts in this topic

Posted

I would like to use the Autofill feature that is built into browsers. In Safari if you go to a form field that has a name tag like the following:

<input type="text" name="FirstName" />

When you start typing your name, Safari will ask you if you want to Autofill the rest of your info. If you choose Autofill it will fill in all the fields that your computer knows (Last name, address, email, phone).

The problem is that in my PHP code the name tag has code for connecting to FileMaker, like the following:

<input type="text" name="<?php echo getFieldFormName('hh_pt_name_first', 0, $record);?>" value="<?php echo $record->getField('hh_pt_name_first', 0) ;?>">

So the Autofill will sometimes pop up and if you click Autofill it puts the information in the wrong fields.

Does anyone know how to make the Autofill work?

0

Share this post


Link to post
Share on other sites

Posted

You would have to make the actual field names in the database match what AutoFill is expecting... Then, when the PHP is rendered to the browser, it would 'see' name="NameFirst"

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0