I have a form in which a user can select multiple options in a select menu. From a user experience perspective, what do you think is the most intuitive / best option?
A) Use the "multiple" attribute for select element (then you can hold down control and select multiple options). ADV: Simple, no coding required. DIS: Not intuitive.
B) H...
I have some orders with nested items and the items have nested kinds. When i do a form_for @order in a view, then i would like to hide all the items that have their :registered attribute set to true
<% form_for @order do |f| %>
<% f.fields_for :items do |ff| %>
<%# show all the items that have :registered == false %>
<% end %>
<...
In http://docs.djangoproject.com/en/1.2/topics/forms/modelforms/#a-full-example can anyone tell me the step by step process to map the AuthorForm and Bookform in my views.py and to render it in my template.
...
Hi
I have something like this:
<select class="bla">
<option value="1">...</option>
<option value="2">...</option>
</select>
<select class="bla">
<option value="1">...</option>
<option value="2">...</option>
</select>
<select class="bla">
<option value="1">...</option>
<option value="2">...</option>
</select>
<input class...
I am creating a rails app wherein I have a problems model.
How do i create a form that asks the user to choose the range of values that he wants to see.
i.e the form asks him to choose say the cause of the problem and between what dates such problems could have occurred and then output those results from database?
Thanks in advance.
...
I was just introduced to the concept of Outlook forms. I don't know if this will solve my problem but here is what I want to do:
I want to be able to have employees who are inside the company fill out some forms. So all I have to do is create the form and PUSH it to their Outlook? After they fill out the form, can I capture the data som...
I allow users to view and edit a few fields of a database record represented by a ModelForm.
Here is a snippet of the code from the view:
def edit(request, id):
obj = get_object_or_404(Record, pk=record_id)
if request.method == 'POST':
form = forms.RecordForm(request.POST, instance=obj)
if form.is_valid():
...
The idea: I'm setting the value of an input with type="hidden" via regular Javascript or jQuery.
The issue: neither jQuery nor document.getElementById will find the hidden input, even though I'm absolutely sure the selector is correct and there are no conflicting elements.
The code:
I can't really post much of it, because it's full of ...
PHP has never been my strong suit so I need some assistance getting the contents of a form to send via email properly in PHP.
Here is the html form:
<form action="estimate.php" method="post" >
<fieldset>
<input type="text" class="required" name="name" value="FULL NAME*" onfocus="if (this.value=='FULL NAM...
we have about 200 employees
i need to help HR to automate stuff
one of the things that they need is to gather information from employees before they interview and after they become an official employee
GOOGLE FORMS is one way to do it
but can anyone recommend a very simple out of the box way to push forms to different employees insid...
I am using a CMS like system, which defines custom form fields.
To make a form, all you can really do is add certain form fields, and that is it. The only action possible within the CMS form builder is to save the form to the database.
Here is an example of such a form.
I want to basically have one field, the inputSmartSearch field, w...
I have a database of clients. Before entering a new client, I want to make sure that that client is not already in the database. So I want to put a search form at the top of my page to search by client number, and client name. Further down the page, I'll have another form to enter and submit the client's information. Would this be the be...
Generally, a get request is not meant to have any side-effects. However many sites allow you to reset your password or authenticate your email/user by clicking a link embedded in the email. Since we don't want to send HTML emails and therefore cannot use a form in which the data is POSTed, we have to use a get request.
However it is cons...
I would like to be able to interact with html webpages from C# or Java. Basically I would like to load the page and display it (just as it would be displayed in a browser) and be able to highlight and select text by index, tag, word etc (which would be passed back into my program) and manipulate.
I am not interested in manipulating HTM...
I'm looking for best framework in order to generate and validate forms in php.
I would really like it to be based on smarty too.
Any suggestions?
...
I have a page which displays a form that a logged-in user can use to edit their profile.
The first time the user loads the corresponding view, with a GET request, the form should display the values of the users existing profile record.
Because I'd like to have granular control over the markup used for the form fields, I'd like to retri...
I'm submitting a form and need to collect the data.
Following this example, I'm trying to retrieve the value I selected in a select box.
The problem is, the select box does not have the attribute 'name'.
<asp:DropDownList runat="server" ID="countySelect" CssClass="ddlCountySelect" DataValueField="kommunekode" DataTextField="kommune" ...
I have a photos model and a gallery model. The gallery model(I used nifty scaffold) just has one field, a gallery name.
In my photo edit form I want to link each photo to a gallery, eg. I create 2 separate galleries 2009 and 2010, I want to have a dropdown list on each photo edit page with the list of galleries, so each photo can be plac...
Ok so here is my epic journey problem going on for a month now...:
First problem: I was building a form with coldfusion-ajax tags which was the worst mistake ever. IE completely hates it and I was unable to bind anything. YES, my code was correct. I had it verified by many people and many forums. So I have NO IDEA what was wrong.
So co...
I have a form that I use to display several fields from a record to the user. However, the user should not be able to update all the fields that are displayed. How do I enforce this? It would nice if I could specify which fields to save when calling form.save, but I couldn't get this to work. Here's some of the code:
obj = get_object_or...