Hey all,
I am making a contact form as well as an equipment rental form for an IOS app.
Both forms use the same information for some of the fields (name, email, phone) but are on different cards.
Can one field populate the other field, even on different cards?
Ex. "name" on card 1 populates "name" on card 6.
Thanks
- Jay
same fields two forms, enter data once?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: same fields two forms, enter data once?
Sure, use something like this:
That will update the fields just before the second card is opened. Or if you prefer, you can do it on a closefield in the first card so it's dynamically updated on the fly:
Note the difference between "the target" (which is the field name) and "target" (which is the contents of the field.)
Code: Select all
on preOpenCard -- in the second card
repeat for each item i in "name,address,city,state" -- list fields here, no spaces
put fld i of cd "firstcard" into fld i
end repeat
end preOpenCard
Code: Select all
on closeField
put the short name of the target into tFld
if tFld is among the items of "name,address,city,state" then
put target into fld tFld of card "secondcard"
end if
end closeField
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: same fields two forms, enter data once?
THANK YOU so much!
Very excited to try this.
- Jay
(15 minutes later)
Awesome! This works perfectly!
So excited.
Very excited to try this.
- Jay
(15 minutes later)
Awesome! This works perfectly!
So excited.