[web2py] Re: using custom upload button when using SQLFORM

2016-01-02 Thread Jitun John
Hi Anthony, I would prefer the last option to replace the upload element. But even after reading "Server-side DOM and parsing" a few times I am unable to comprehend it. I guess we would like to replace with It would be kind of you to just give me an example of the code. Thanks a Lot. On Wedn

[web2py] Re: using custom upload button when using SQLFORM

2015-12-15 Thread Anthony
But how are you generating the form HTML? Are you doing it all manually? If so, I suppose your problem is that you have hard-coded the formkey, which actually changes on every page load. Note, you can get the formkey dynamically via form.formkey. You can also get the whole div that includes the

[web2py] Re: using custom upload button when using SQLFORM

2015-12-14 Thread Jitun John
Here is the Code from the Model defining the table db.define_table('logs_db', Field('case_num'), Field('case_desc'), Field('log_gen_time', writable=False, readable=False), Field('log_uniq_name', writable=False, readable=False, unique

[web2py] Re: using custom upload button when using SQLFORM

2015-12-13 Thread Anthony
Please show the code you are using to generate and process the form. On Monday, December 14, 2015 at 12:57:17 AM UTC-5, Jitun John wrote: > > I was trying to replace the Normal Upload button in {{form}} with a button > with nice jquery Browse/File button > > data-buttonName="btn-primary"data-but