Jump to content


Autofills add fields on dropdown change

Autofills dropdown change

  • Please log in to reply
2 replies to this topic

#1 R David Bello Flores

R David Bello Flores

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 27 August 2014 - 10:43 PM

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

 

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

 

 

 



#2 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 27 August 2014 - 11:19 PM

Use AJAX and be happy:)



#3 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

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 :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users