Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[Solved] : Save name not id on Foreign Field 31 Dec 2013 05:24 #11873

Hi, I must be missing something. Can I force a Foreign Field to save Text instead of the ID of the Foreign Field.

For example: I have a table called Sites with the auto ID , Site Name & Address

I have a table linked to it that I want to save the ("Site Name") to in the database, rather than the id number.

I need this to do this so I can get a Chart Component to work with my Component I am Building.

Please Log in or Create an account to join the conversation.

Last edit: by jonathanbell.

Save name not id on Foreign Field 01 Jan 2014 22:14 #11877

Another option I suppose due that the Foreign Key saves the id number could be to copy the result from the field into another field.

e.g person selects site: Warehouse ( id1) and the form places the word Warehouse into another field that the data base could then use for other reasons.
Any easy script to add to the form that would do this? On any PHP forum or help site? It does not have to save the field immediately, this could happen when the form is submitted.

Cheers if anyone has the answer. ("I'm not a coder')

Please Log in or Create an account to join the conversation.

Last edit: by jonathanbell.
  • Page:
  • 1
Time to create page: 0.051 seconds
  This is really a brilliant service. I'm sure it will become very popular and bring you a lot of well deserved success. Congratulation !
Scott (scott717 - Forum)

Get Started