Newbies bjd Posted May 9, 2000 Newbies Posted May 9, 2000 I think I'm going crazy!!! As far as I can tell I have set up a page in Home Page properly so that I can edit a record in FMP 4.1 BUT!!! I have all the fields on the details page and the idea was to fill in the ones you want to change and click edit and it will update the record - leaving the blank fields untouched. Or at least that's how I thought it would work - of course what happened was that the fields left blank [unchanged] caused the record to get blank fields!! Do I add an if or something! help.... i can't edit fields!!! ------------------ _____________ Think Different, Think for yourself.
jptrue Posted May 10, 2000 Posted May 10, 2000 If you have setup a form to edit the record, Try giving the input fields the current value of the fields in that record. <HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <FORM ACTION="FMPro" METHOD=POST id=form1 name=form1> <INPUT TYPE="hidden" NAME="-DB" VALUE="YourDatabase.fp5"> <INPUT TYPE="hidden" NAME="-Lay" VALUE="Your_layout"> <INPUT TYPE="hidden" NAME="-Format" VALUE="Details.htm"> <INPUT TYPE="hidden" NAME="-Error" VALUE="error.htm"> <INPUT TYPE=HIDDEN NAME="-token" VALUE="25"> <INPUT TYPE=HIDDEN NAME="-max" VALUE=1> <INPUT TYPE=HIDDEN NAME="-Edit"> <TR> <TD> <INPUT TYPE="text" NAME="FieldName1" SIZE=25 value="[FMP-Field: FieldName1]"> </TD> <TD> <INPUT TYPE="text" NAME="FieldName2" SIZE=25 value="[FMP-Field: FieldName2]"> </TD> </TR> <!-- edit buttons --> <TR> <TD> <INPUT TYPE=SUBMIT NAME="-Edit" VALUE="Edit"> </TD> </TR> </FORM> </BODY> </HTML>
Newbies bjd Posted May 11, 2000 Author Newbies Posted May 11, 2000 Thanks heaps!!! It worked and now I have learnt something too!. ------------------ _____________ Think Different, Think for yourself.
Recommended Posts
This topic is 9031 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now