⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Autofills add fields on dropdown change



R David Bello Flores

R David Bello Flores
  • profile picture
  • Member

Posted 27 August 2014 - 22:43 PM

can someone tell me how I can make a form like this: 

 

http://www.adqm.rs/kandidat/add

 

 

 


victor

victor
  • profile picture
  • Member

Posted 27 August 2014 - 23:19 PM

Use AJAX and be happy:)


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 04 September 2014 - 04:31 AM

it is ajax for sure

well.. heres an overview to the functionality

1 - Use a script to hook to the change even of the element (of course add to the crud using set_js)

2 - On change - submit the value to a url .. which fetches the data (it can be better in json)

3 - on arrival of data - just fill it up in the right field .. so alls set as expected

 

Happy Gcing :)