forms

How to pass an HTML widget's value from an HTML form to an Xquery in eXist-db?

会有一股神秘感。 提交于 2020-06-01 05:08:23
问题 In my intention this question represents an universalization of a specific issue indicated in a previous request: see related question (this is why I dare to send a second help request). I still cannot find an answer to the problem of how exacltly an html widget's value could be passed to an Xquery. The specific widget is a textarea, added to an html form (not to an XForm!) by means of the external function, the code of which can be found within the mentioned related question. So, the

Autofocus only working on page refresh

荒凉一梦 提交于 2020-05-29 06:18:43
问题 I have a form which is in a popup, I've set the autofocus attribute autofocus="autofocus" but it is not focusing when the form loads however it will focus if you refresh the page. The form is inserted into a div . Form Sample: First Name:<input type="text" name="fname" placeholder="First Name" class="userField" autofocus="autofocus" id="firstNameUserField" value="<?php if(isset($_SESSION['firstname'])){ echo trim($_SESSION['firstname']); } ?>"> Div form is inserted into: <div class="main"> <a

Remove Labels in a Django Crispy Forms

匆匆过客 提交于 2020-05-28 12:45:51
问题 Does anybody know if there is a correct way to remove labels in a crispy form? I got as far as this: self.fields['field'].label = "" But it's not a very nice solution. 回答1: You could edit the field.html template: https://github.com/maraujop/django-crispy-forms/blob/dev/crispy_forms/templates/bootstrap/field.html#L7 Add a FormHelper attribute to your form that controls the label rendering and use it in that template if . Custom FormHelper attributes are not yet officially documented, because I

Disable Chrome Autofill creditcard

这一生的挚爱 提交于 2020-05-27 04:33:06
问题 I have two fields in my form which Chrome falsely identified as credit card numbers (one is for a phone number and one is for a fax number). There are also two fields for firstnames which Chrome thinks are fields for credit card names and want to autofill. Is there some attribute I can use on these elements to tell Chrome that they are in fact not related to a credit card? I've tried setting autocomplete="false" on the inputs. This removed the autofill options for address/contact information,

Disable Chrome Autofill creditcard

ぐ巨炮叔叔 提交于 2020-05-27 04:31:06
问题 I have two fields in my form which Chrome falsely identified as credit card numbers (one is for a phone number and one is for a fax number). There are also two fields for firstnames which Chrome thinks are fields for credit card names and want to autofill. Is there some attribute I can use on these elements to tell Chrome that they are in fact not related to a credit card? I've tried setting autocomplete="false" on the inputs. This removed the autofill options for address/contact information,

Change MailChimp's success/error message

本小妞迷上赌 提交于 2020-05-27 03:55:19
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously

Change MailChimp's success/error message

╄→гoц情女王★ 提交于 2020-05-27 03:54:53
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously

Change MailChimp's success/error message

一笑奈何 提交于 2020-05-27 03:54:26
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously

Change MailChimp's success/error message

烂漫一生 提交于 2020-05-27 03:54:09
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously

How to automate PDF form-filling in Java

痞子三分冷 提交于 2020-05-24 08:23:01
问题 I am doing some "pro bono" development for a food pantry near where I live. They are inundated with forms and paperwork, and I would like to develop a system that simply reads data from their MySQL server (which I set up for them on a previous project) and feeds data into PDF versions of all the forms they are required to fill out. This will help them out enormously and save them a lot of time, as well as get rid of a lot of human errors that are made when filling out these forms. Not knowing