I just found out that in FF, if you are dynamically creating an OPTION DOM element inside a SELECT element and just set its innerHTML, it sets both the innerHTML i.e. the displayed text as well as the value of the OPTION.
var opt = document.createElement('OPTION');
opt.innerHTML = 'Opt';
this set the "value" attribute as well of the e...
I have a select list I've created in a form alter, however, when I select an option and submit the value, only the first digit gets stored in the database. I know this has something to do with how the array is formatted, but I can't seem to get it to submit properly.
function addSR_form_service_request_node_form_alter(&$form, $form_stat...
Looking at the previous implementation of a site that I'm working on, I can see that we have an options form that is calling a ManageObject.php script. That script does some actions on a number of objects, and then returns to the page via the following code:
echo "<script type=\"text/javascript\"> window.history.back();</script>";
My ...
in my form i have this code
<form action="mail.php" class="contactForm" name="cform" method="post">
Problem is when i validate it tells me "name" is not allowed on xhtml strict.
is there a way i can use soem thing else for this.
thanks
...
Struts 1.1
Everything is in the title : I want to initialize Form B coming from form A with Action X in between. X gets form A input, validate it and put some of it in form B of jsp 2.
I have a bad solution : I merge the 2 forms in one and each jsp use it. That 's not an elegant one so I 'm looking for this one, I 'm sure it exists.
...
I have a form, it passes the following values:
image_title,
image_description,
image_file
I wanted to present this form multiple times, so I did the following:
image_title_1,
image_description_1,
image_file_1
image_title_2,
image_description_2,
image_file_2
Multiple times, so I have the fields 1 - 10. I submit the form and print o...
I need to implement a system where I have 5 forms. An agent then goes to a client and can fill one, some, or all of these forms. The client will then be able to access ONLY his forms through a backend system, while the agent has a god-eye view of the system. The client can then mark the form as accepted if it is correct, or reject it, or...
Hi, I asked a related question previously, but the question I need answering now seems to have gone on a bit of a specific tangent so I thought it would be better to make a new question.
I am trying to prevent form submission until all ajax calls on a page have returned successfully.
I have a simple test for this (add 1 to a counter wh...
Is there a way to disable the colored shadow generated by Webkit browsers when a form element receives focus? It's yellow in Chrome and blue in Safari, and gets in the way of any custom focus styles I try to implement.
...
I want to create a simple user registration form with First / Last name, email, and password. We have used captcha and email verification in the past to ward off bots, but is there another way without using those techniques? I thought about encrypting the field ID names so that they aren’t names username, password, etc. we tried openID,...
Hi everybody!
What I'm trying to do is to manage several forms in one page, I know there are formsets, and I know how the form management works, but I got some problems with the idea I have in mind.
Just to help you to imagine what my problem is I'm going to use the django example models:
from django.db import models
class Poll(model...
I'm trying to submit a rails form using a submit trigger that is outside of the form tags. So I have my form:
<% remote_form_for Package.new,
:url => { :action => :rate_shop, :ids_sales_order_id => params[:ids_sales_order_id],
:id => @shipment.id }, :loading => '$("#loading").overlay({api: true}).load(); ' + visual_effect(:appear, 'pri...
I am having a hard time using the $op variable when working with forms. It seems that the $op variable is generally part of node_api (which I haven't really used), but what about the $op variable in a form alter?
How can I make my form alter apply when the node is being edited vs. created?
...
Okay guys,
I have read through all the other posts and question on jquery validation plugin and they don't seem to have what i'm looking to do.
I would like to have the display error not show with message but just create a red border around the input field instead.
Here is just some of the form:
<form id="donate_form" name="checkoutF...
We have a Django Model, ToolDataset, and a ModelForm, ToolForm. In the Model each instance, or database row, is referred to as a dataset, and the primary key is called the dataset_id. First time through, the user fills out an unbound form and submits it. Conceptually, this is the view code that is used to validate, save and analyze the d...
Hi,
I've found an incredible Form Management System called Formdesk (http://www.formdesk.com). It is very powerful and flexible. However, I would like to know if there is an open source (preferably PHP/MySQL) alternative because there might be cases where I would need to modify the code. Basically, this is the process:
An agent fills o...
Dear All,
I am relatively new to php. I have the following problem.
Suppose I have a page with
a form with two fields x, y and two buttons: submit and clear;
a table that shows the db records for x, y with two buttons, edit and delete
when I enter values in the form fields and press button, submit inserts the data in the db; data is ...
Hi,
There maybe some simlar questions to this but I can't see anything that really solves my problem. I would like to pass the contents of a variable in JavaScript either into a PHP variable or a html form value.
Cheers, knowing how to do both would be very helpful.
...
I have a form that submits a search for blogs on my site via GET.
The form works fine, but when submitted, the url on the following page reads ("Find it" is the value of my submit button):
www.example.com/search.php?sub_q=Find+it%21&q=tennis
This just isn't an aesthetically pleasing url. Is there a simple way to exclude the submit...
When an option is selected the corresponding checkbox <div> is automatically hidden using jQuery. For example, user selects Item 1 from the select box, and <div class="item1"> is immediately hidden.
Caveat: Both will be visible, so the user changing the select option must be accounted for (eg. user selects an option who's corresponding...