The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Dropdown box auto populates other input fields - Help - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29) +--- Thread: Dropdown box auto populates other input fields - Help (/showthread.php?tid=550) Pages:
1
2
|
Dropdown box auto populates other input fields - Help - muhammedc - 04-30-2017 Thanks... much appreciated... Dropdown box auto populates other input fields - Help - Brandin - 04-30-2017 I have to work on this for one of my scripts I am coding so I will see what I can figure out and I'll get back to you! Dropdown box auto populates other input fields - Help - muhammedc - 05-08-2017 @Brandin Any Luck @Muadmin - Do you have any ideas here? Dropdown box auto populates other input fields - Help - Brandin - 05-09-2017 I've been trying a couple things and figuring out what is going to work best. I am struggling to figure out the solution to populate one from another. It may be a few days before I figure something out, sorry. Dropdown box auto populates other input fields - Help - firestorm - 05-09-2017 you could use ajax for that, i use this for form submission but you could adapt it for use with on change, your php logic can go into a separate php file making sure to incl. init.php and $db = DB::getInstance(); <pre> Code: $('#form-id').submit(function(e){ maybe that helps a little Dropdown box auto populates other input fields - Help - mudmin - 05-09-2017 I've definitely pulled my hair out on doing that sort of thing. A lot of it depends on HOW you are getting all the other options. I have a work order system that asks you to choose if the work order is for a building or vehicle. Then if you choose building it wants to know what section of the campus it's in. Then once you choose that, it gives you a list of the buildings in that area. My solution is a hack job but it works.... It's a lot of hiding and showing divs with js at the bottom. https://hastebin.com/ifovujewey.xml Dropdown box auto populates other input fields - Help - Brandin - 05-09-2017 Mudmin, if you don't mind, can you throw me the structure of your tables related to this page? I want to play around with it a bit so I can modify it to my use! Thank you! Dropdown box auto populates other input fields - Help - mudmin - 05-10-2017 I'll shoot you an email with the schema. |