Gossamer Forum
Home : Products : DBMan : Customization :

on add record autofill field...

Quote Reply
on add record autofill field...
This is probably going to be simple for you. I have searched for related topics, some came close but not quit. What would the best way be to do the following:
When a user is entering a new record, I need DMan to automatically fill in certain fields,ie:email address,telephone numbers,ect.., based on the userid? You might just want point me in the right direction if you dont have the time to go into detail. Your help is GREATLY APPRECIATED. This forum has helped a great deal in the past but I am kinda confussed with this one.

------------------
Quote Reply
Re: on add record autofill field... In reply to
Do you have this info in another flat file ..? If so, maybe instead of autofilling fields and increasing the size of your main database you could try out JPDeni's relational setup to pull the info out of that other file when you need to display it.

Search the forum for the link to her tutorial.
Quote Reply
Re: on add record autofill field... In reply to
The search for relational set-up really didnt come up with anything of use sorry to say. Yes, I can set-up another flat file to include the user information that would be used. All I want it to do is, if a user "Joe" is logged on as userid 1, and he is adding a record, the value of email field in the new record would equal the value from his user info file. From what I have seen from the searchs so far is that this may not be possible, although a simple request. Can you help further? Thanks alot.

------------------
Quote Reply
Re: on add record autofill field... In reply to
By the way, I did come across a mod that would handle that but each time a new user would sign-up the add_form html would need to be changed eachtime. There might be 200 "Joes" Smile.
Quote Reply
Re: on add record autofill field... In reply to
I'm no expert , but it sounds like you want to set a cookie.

If you search here "cookies" I think that you'll find what you're looking for.

Try this for starters

http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/001155.html
Quote Reply
Re: on add record autofill field... In reply to
This was a great mod! I was wondering if you could help me modify this mod just a little...

Let's say I wanted to "remember" something that the user inputs into a config form. Like:

<Font Color="blue" size="2">

and then pull that information up each time they enter a record. Can it be done? I have never used java, so I am really out in left field here.

Greg