forms

User Interface: Multiple choice select boxes

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...

Is there a way to hide some of nested objects in model?

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 %> <...

django form based on model

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. ...

jQuery - hidden input value from select inputs

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...

User defined form in Rails

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. ...

Building Forms for Outlook 2007

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...

Django: Can't save a form

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(): ...

Setting the value of a hidden input

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 ...

Need some help with a HTML form PHP send email combo platter

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...

what is the best way to gather data from employees inside the company?

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...

Making a custom phpBMS form act like a normal HTML form

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...

Two forms on the same page drupal

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...

get side effects vs. get password reset

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...

Programmatically manipulate webpage from C# or Java

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...

Best PHP form generation & validation Framework

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? ...

Django: How to access modelform field data in templates

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...

How do I get selected value from select box using Request.Form?

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" ...

fields_for nested form

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...

Set session variable with select box via jQuery/ Ajax with Coldfusion

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...

Django: Can I restrict which fields are saved back to the database using forms?

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...