Re: [web2py] Update hidden field / id for hidden field

2017-07-07 Thread Richard Vézina
I give a look to daterange, I am not sure how it can be integrate without yout to create your own piece of js code to handle the splitting of the 2 dates... daterangespicker seems to requires you to use a single field to store the information... So you have 2 options, you create a single field in y

Re: [web2py] Update hidden field / id for hidden field

2017-07-06 Thread backseat
You're right, of course.I, too, get frustrated by people asking the wrong question, and now I'm doing it... I have a form that requires a 'from_date' and a 'to_date', which is currently implemented using two fields. I like the idea of using the 'daterangepicker' tool, particularly the predefine

Re: [web2py] Update hidden field / id for hidden field

2017-07-06 Thread Richard Vézina
I don't understand the use case... What the purpose of updating an hidden field? You can certainly create a dom element with an id and hidden it, but the usage for such a field is to manipulate dom element with js before reinject the proper selected data into the proper form field in order to the i

[web2py] Update hidden field / id for hidden field

2017-07-06 Thread backseat
I want to use javascript to update a hidden field, but I can't find a way to give a hidden field an id which would make it much easier to update. SQLFORM.factory(..., hidden=dict(a="",b="")) will create the hidden fields, but not with an id. What's the best way to create non-database hidden f