forms

Default value of form object's field

Hi there, I have a form where depending on the select state ([checkboxOn/checkboxOff]) a check box should appear or not. When the check box is displayed it should be checked by default. How to handle that situation, taking into account that when select is in 'checkboxOff' state, I would have MyFormObject.isCheckboxOn == false; when ...

How to submit form using AJAX?

I have an event listener: $('button.publish').live('click', function() { //enter code here }); This button element is inside a form. I know that I can't use $(this).submit(); 'cause it will cause refresh. I also can't target the form by its ID because I'm trying to make it for general use (add news, add contact, add ...). Knowin...

How do I design multiple detail forms?

Not sure how to proceed on this. I have a contacts Ruby on Rails application. One person, many contacts. I have created the master name and have the associated contacts. All that works fine. Now, I have another "has_many" table for master_name and what I'm not sure is how I should display that data entry portion. Do I just have ano...

access forms as asp.net's listview

I made an access vba application where all my architecting was simply creating a one-to-many relationship between a "status" table and a "data" table that contained all the other details of my record. Created a form with the single click of a button with my "status" table open, and wallah,,, I got a form for my open or closed records th...

how do I set a field with a duplicate name of another field in mechanize?

I am trying to submit a form with 2 fields with the same name but different type. I can identify the correct field I want by the field type or the number. Whats the best way of setting the correct field without iterating through all the fields? ...

is form charset required?

Hi, My website is set to UTF-8, do i have to set my forms also to utf-8 using the accept-charset for forms? My guestbook for example allows multilanguage so my guestbook database table is utf8_unicode_ci and all my webpages use the same template so the encoding for all pages is utf-8, because i set the charset for my webpages as utf-8...

POST multiple checkbox value tornado

I am messing around with a tornado web app with which I need a bit of help. I have multiple checkboxes with the same name and I would like to POST the values of the selected one. <input id=DB_BASED_ID name="activity" value=DB_BASED_ID type="checkbox"/> <input id=DB_BASED_ID name="activity" value=DB_BASED_ID type="checkbox"/> <input id=...

How to create an auto-respond email subscription form in 5 minutes?!

Hi, I am developing a splash screen as coming soon for my new website and want an email subscription form with auto-responding capabality. I can do this myself but I was pondering if there is any services out there to handle such email related activities or we should still do such things by ourselves? Sorry if this sounds a rather old-sc...

Problem with html 'post' button in a table, using PHP.

Hi there - I am relatively new to html and PHP, and have a problem which I can't seem to get around. Basically, I have a table and want to have within one of the cells a submit button that will take the user to another page where they can edit that row. I have all of the machinery for this in place, apart from the fact that I can't ge...

Open Source PHP Form/Survey Engine

Does anybody know of any open source project that deals with creating forms or surveys? The engine needs to function something similar to Survey Monkey (surveys; each containing survey pages; each containing a survey element - radio boxes/check boxes/text areas or other components) - except that we have requirements to brand it with cus...

Ruby on Rails: form and radio button question

I have a form around a list of items. I would like to check a radio button on the list and then, after clicking 'Submit', go to the 'Edit' page of the selected item. The problem is that if I am writing something like <%= form_tag edit_item_path %> but Rails complains that I didn't provided a proper id, which in turn is being set on...

Django Forms Integrity Error

I created a project with Django and am trying to write from forms to db. The model class has two classes : class Contact(models.Model): name = models.CharField(max_length=200) birth_day = models.DateTimeField() address = models.CharField(max_length=200) class PhoneNumber(models.Model): PHONETYPE_CHOICES = ( (0, ...

C# accessing form member from separate class

Hi all, I need some advice please on the best way to achieve a particular outcome... My scenario... I have a Form1 class, which is my main Form with a picture box on it. I have a second class called camera that using an event handler grabs a frame (bitmap) from my webcam. I then want to pass this frame to the picture box in the main...

[PHP - jQuery - AJAX] - Form submit

Hi Everyone, I'm basically just trying to submit a form through AJAX and want to show the return of the processing PHP page. The PHP page just validates the input and shows either the errors that occured, or a thank you message to the user. Normally I wouldn't use ajax for it, but in this case the customers setup requires me to. As sim...

PHP Form Key Niggle ?

Hello again, Can someone look at my two functions below and suggest what i can do?, i have created two functions that basically creates a unique key and this is echoed in a hidden field in a form and then straight after i check if the form has been submitted the second function checks to see if the key in the hidden field matches the ke...

web based programs to create/fill in pdf forms

Our accounting department has an application that presents a pdf type form where users fill in input fields. Today we have to replace an old tax form. We don't have the developer software or the old developer. I think the software to make the form comes from adobe. What software do we need to create/test this type of form? Is th...

how do i make it so someone will fill out a form on my site, and then get redirected with to another form with the values already filled?

I am using a wp blog and I want leads to come in to go to be via email and then get refered to another website with the values already filled in? I want to use php, but i will use anything that works. does anyone know how to do this? ...

Using Radio Buttons in Rails

Hello, I have a Category model with two booleans, article_cat? and profile_cat?. I want to be able to create a new Category with a form that lists these two using radio buttons. If one radio button is marked, the other one is unmarked. It should send a true value to the create method of the one that is checked and create a new category w...

ExtJS: disable checkbox toggle on label click

I am designing a checkbox for a for and I absolutely cannot have the checkbox to toggle when the user clicks on its label, as this label contains a link to open a small infobox where the user gets to know what he or she is accepting by selecting the checkbox. How can I disable checkbox toggle when clicking on its label? The code looks ...

rails multiple form actions with ajax...

I have a basic Rails form like so: <%= form_for @person do |f| %> <%= f.label :first_name %>: <%= f.text_field :first_name %><br /> <%= f.label :last_name %>: <%= f.text_field :last_name %><br /> <%= f.submit %> <% end %> How could I optionally send the form information to another an entirely different controll...