Autocomplete fields based on Select value?
Hi there, using DA I have insert forms to add contacts & orders to my database. On insert_orders.php I have a select field where I can choose a contact to bind to the new case which works well.
Is it possible once the contact is selected multiple other fields could be hidden as they already exist in database; address, postcode, telephone etc?
I am trying to do away with insert_contact.php, allowing users to either select existing contact or create a new one & bind to case within one form.
If contact exists then -
SelectFld1 - Search for existing client and hide other contact related fields on form
If contact doesn't exist then -
InputFld1 - Contactname [autofill or manual]
InputFld2 - ContactPhone [autofill or manual]
InputFld3 - ContactPostCode [autofill or manual]
InputFld4 - ContactAddress1 [autofill or manual]
InputFld5 - ContactAddress2 [autofill or manual]
I am sure its not the right way but could I perhaps use SA 'show region' saying if SelectFld1= NULL then show InputFld1, InputFld3 , InputFld3 etc etc
Kind regards for your help once more.