Log message #4123827

# At Username Text
# Mar 12th 2018, 04:56 joddit Doubt the docs would be different than the plugin heh
# Mar 12th 2018, 04:56 savant and what things does it do automagically that you dont like?
# Mar 12th 2018, 04:56 joddit Well I read the docs and extrapolated from that
# Mar 12th 2018, 04:56 savant did you try to do that or is that just a “I dont think it can do it im not going to bother” comment?
# Mar 12th 2018, 04:55 joddit And doesn't seem flexible on getting really creative with bootstrap forms and such
# Mar 12th 2018, 04:55 joddit It automagically does more than I'm looking to do
# Mar 12th 2018, 04:54 savant rigid in what way?
# Mar 12th 2018, 04:54 joddit It was a little too rigid from the reading
# Mar 12th 2018, 04:54 savant okay you have fun with that
# Mar 12th 2018, 04:53 joddit I'm too much of a control freak
# Mar 12th 2018, 04:53 joddit No
# Mar 12th 2018, 04:53 savant https://github.com/friendsofcake/bootstrap-ui
# Mar 12th 2018, 04:53 savant joddit: did you try out the bootstrap-ui plugin?
# Mar 12th 2018, 04:52 joddit Hard coding it in the template seems out of the question
# Mar 12th 2018, 04:51 joddit For use with bootstrap
# Mar 12th 2018, 04:51 joddit Like I don't want to remove the ability to add the odd class here or there, but I'd like at least one class to be applied to all inputs
# Mar 12th 2018, 04:51 joddit Is there an easy way to set a default class for inputs generated by FormHelper?
# Mar 12th 2018, 04:35 loginews going there to do it.
# Mar 12th 2018, 04:35 loginews it will I am sure
# Mar 12th 2018, 04:35 joddit Hope it helps
# Mar 12th 2018, 04:34 loginews thanks
# Mar 12th 2018, 04:34 loginews I am not selling free stuff. That part is the purchase order module !!!
# Mar 12th 2018, 04:34 joddit So the value in that field shouldn't actually be submitted at all imo
# Mar 12th 2018, 04:34 savant :)
# Mar 12th 2018, 04:33 savant in which case, what are you selling so I can get free stuff
# Mar 12th 2018, 04:33 joddit That should just be a front end thing
# Mar 12th 2018, 04:33 joddit But again be sure to do it on server side
# Mar 12th 2018, 04:33 savant unless you want to sell free stuff
# Mar 12th 2018, 04:33 loginews readonly instead of disabled.
# Mar 12th 2018, 04:33 loginews oh ok
# Mar 12th 2018, 04:33 joddit Mark it read only
# Mar 12th 2018, 04:33 savant otherwise people will just put 0 and make all your stuff free.
# Mar 12th 2018, 04:33 savant but you should not trust your clients to submit pricing options like that
# Mar 12th 2018, 04:32 savant you can calculate it client side
# Mar 12th 2018, 04:32 savant do that calculation on the server side
# Mar 12th 2018, 04:32 loginews I use js
# Mar 12th 2018, 04:32 loginews qty * unitprice
# Mar 12th 2018, 04:32 loginews it's a calculated field.
# Mar 12th 2018, 04:32 savant what exactly are you trying to do
# Mar 12th 2018, 04:31 savant if its set to disabled, then the browser submitting the form might not submit it at all..
# Mar 12th 2018, 04:31 loginews Sorry to disturb. I have a simple question, if you don't mind. I have a field "amount" in edit.ctp for which I have set the option 'disabled'=> 'disabled' If I programmatically, through js, put a value in that field... is it normal that it does not get saved ?