![]() |
What is the best way to refresh a form without running through the validation process? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: What is the best way to refresh a form without running through the validation process? (/showthread.php?tid=53474) |
What is the best way to refresh a form without running through the validation process? - El Forum - 07-25-2012 [eluser]DocFunky![/eluser] I'm setting up a cart where the user can update the quantity. Because I don't know aJAX to do it instantly, I'm looking to do it in full php with a refresh cart.( you can still se my post where I try to set it up with AJAX) The thing is that there is a form below the cart and when the user change the quantity (into an input) he has to click on 'refresh' or 'recalculate', whatever. So my problem is I get the validation process running as the re-calculate is like a submit button ( the price is calculated at the begining of the form method) because the user modified an input, and for all the fields that has not been filled yet, I got an error. How can I say "If the user click on refresh, don't submit the form to the validation process, just take that input in consideration" ? I don't know if it is possible to have 2 separated forms on the same page ? (they are inside each other) I give a part of my form, I need to listen to the > form_dropdown('quantity'.$product['title'], $options,$value[$product['title']],$data0); when I want to update the quantity, and only this one. Code: <ul class="form"> Tnanks |