.aspx forms, required fields left blank
Hi. I am working with someone on an .aspx page. They created the page & all I do is test it. We put this page live for a week & someone filled out the form, but somehow managed to skip a couple required fields. I do not know how they did this, because we have a pop-up window that will come up if you did not enter a field in, it will let you know. 3 fields were not filled in that are required. Is there a special blank character they could have put in? I tried the space bar but that did not work. Any ideas as to why or how they got around this?
Thanks.
A link to your form page would help, but sounds like JavaScript is being used for the form validation, and the user may have had JavaScript disabled? Otherwise, the required fields are possibly being set via hidden fields in the form, in which case a spammer could by-pass the form and submit directly to your script, getting around the fields being required. Both are just possible guesses though.
Similar Messages
-
I'm sure that I'm missing something simple; however, the form
on this page <
http://www.howardcore.com/bad_link_form.html>
worked a couple weeks ago when I put it online, and now upon form
submission tells the user that they have left a required field
blank. I'm using formmail php supplied by ISP. Can anyone take a
quick peek and enlighten me?I'm sure that I'm missing something simple; however, the form
on this page <
http://www.howardcore.com/bad_link_form.html>
worked a couple weeks ago when I put it online, and now upon form
submission tells the user that they have left a required field
blank. I'm using formmail php supplied by ISP. Can anyone take a
quick peek and enlighten me? -
i'm creating an inquiry form for a client hosting w/godaddy.
Site is in DW using godaddy's php form mail script. script
works fine for sending formmail.
Is it possible to validate form fields in php? the customer
wants to have the first name, email address, etc. being a required
field or the form will not submit. godaddy support is clueless,
they e-mailed a kb article on changing the form e-mail address as a
solution.
can anyone provide insight? thanx in advance!Sure it is. It's even possible to do it in javascript before
the form gets
submitted.
Which DW are you using?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"donna_d" <[email protected]> wrote in
message
news:fn8468$r4n$[email protected]..
> i'm creating an inquiry form for a client hosting
w/godaddy.
> Site is in DW using godaddy's php form mail script.
script works fine for
> sending formmail.
>
> Is it possible to validate form fields in php? the
customer wants to have
> the
> first name, email address, etc. being a required field
or the form will
> not
> submit. godaddy support is clueless, they e-mailed a kb
article on
> changing
> the form e-mail address as a solution.
>
> can anyone provide insight? thanx in advance!
> -
I've got my form working great thanks to Joe and David (and
others) in
this group.
I want to take it a step further by requiring three fields to
be filled
out. So I found this code to use in my thankyou2.php page:
if (!($frmName && $frmemail && $frmphone))
{echo "You must complete the
form to send it"; } else {
I *thought* that if I used it prior to the code that
processes the rest
of the page, and sends the admin e-mail, all would be swell.
However,
all I get is a blank page.
I'm almost thinking now that maybe the code needs to go on my
contact.php page rather than the thankyou.php page? That way,
the error
message could appear right on the contact page itself?
I'm fairly new to this PHP stuff, so go easy
www.paramount-const.com/contact.txt
www.paramount-const.com/thankyou2.txt
Davesorry:
header('Location:thankyoupage.php'.?name=$_POST['name']);
should read:
header('Location:thankyoupage.php?name='.$_POST['name']);
i misplaced the dot and quote...
(_seb_) wrote:
> Dave Anderson wrote:
>
>> Shane H wrote:
>>
>>>
http://www.geekministry.com/blog_article.php?id=40
>>>
>>> Kim provides an easy way to validate the form
and also a field for
>>> stopping spam (I use it on my website, works
very well!) - all in PHP.
>>>
>>
>>
>> Shane, good catch! Here method is so simple...
>>
>> I installed it, but have a few PHP questions.
>>
>> Source:
>> www.paramount-const.com/html/contact2.txt
>> www.paramount-const.com/html/thankyou2.txt
>>
>> Live form:
>>
http://www.paramount-const.com/html/contact.php
>>
>> 1) Biggest issue:
>> If the form is incorrectly filled out, the error
messages are
>> displayed at the top of the page. I'm not clever
enough to figure out
>> how to display the error message in the fieldset. I
tried putting the
>> php block of code in the fieldset, but it doesn't
seem to matter.
>> Maybe I can position it with CSS? or is there a
different way?
>>
>> 2) Nice to do but not imperative:
>> If the form is filled out properly, it redirects to
my thankyou page.
>> I would like to personalize the thank you if
possible. I know there's
>> a way to customize that page with a name variable,
but I can't get it
>> to work. I think what's happening is that I need to
somehow pass a
>> variable from the contact page to the thankyou page.
I have this at
>> the moment in my thankyou page:
>>
>> <?php echo 'Thank you,
'.htmlentities($_POST['name']).'.'; ?>
>>
>> Thanks.
>>
>> Dave
>
>
> when you click on the submit button of the form,
basically the page
> reloads, this time with all the info from the form, as
$_POST info.
> If all this info is correct, you redirect to the thank
you page.
> You need to pass some of the info to the thank you page
(for example to
> echo the name of the person who just applied).
> SO, when the form is published and the page reloads, you
need to store
> this info, and pass it to the thankyou page.
>
> here's we go, scematically:
>
> <?php
> if [form submitted]...
> $name = [submitted name from form field];
> [if everything in the form is correct and we redirect to
thankyou
> page:]
>
header('Location:thankyoupage.php'.?name=$_POST['name']);
> }
> ?>
>
> Then in thankyou page,
>
> $name = $_GET['name'];
> echo $name;
>
>
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List -
Pdf forms shows field in blank on Ipad/Iphone
We work a lot with PDF forms (FDF) (we already have near 10000 documents in PDF forms format) We can see the PDF with all the field filled in PC or MAC but when we try to see it in IPAD or Iphone all the field shows in blank....
I have tried almost all the top rated PDF reader that I found in AppStore and no one works.
Some of the supports told me that may be a bug in the IOS because they use the apple framework to read the PDF.
The forms were created with Adobe Acrobat 8.0.
By the way, it works perfect in Android too (with Adobe Reader).
Am I the only one with this problem?
Will the IOS 5 fix this problem?
Please, I need a solution....
Thanks
CarlosTry a different PDF reader for your iPhone from the app store. The OEM plugin to read the pdf's may not be able to read form fields. It's worth a shot.
BF -
Re: PHP Form - Required Fields
Change this section of code:
if(!count($Errors)) {
$SendTo = "[email protected]";
$Subject = "New Contact Form";
$FromString = "From: ".$_POST['eaddress']."\r\n";
$Indhold = "Dave, Someone filled out the contact form on the
web site.
Here is the information:\r\n\r\n";
$Indhold .= "name: ".$_POST['name']."\r\n";
$Indhold .= "e-mail: ".$_POST['eaddress']."\r\n";
$Indhold .= "phone: ".$_POST['telefon_nr']."\r\n";
$Indhold .= "subject: ".$_POST['subject']."\r\n\r\n";
$Indhold .=
"comment:\r\n".preg_replace("(\r\n|\r|\n)","\r\n",$_POST['comment'])."\r\n";
$MailSuccess = mail($SendTo,$Subject,$Indhold,$FromString);
header("Location: thankyou2.php");
exit;***************************
To this:
if(!count($Errors)) {
$SendTo = "[email protected]";
$Subject = "New Contact Form";
$FromString = "From: ".$_POST['eaddress']."\r\n";
$Indhold = "Dave, Someone filled out the contact form on the
web site.
Here is the information:\r\n\r\n";
$Indhold .= "name: ".$_POST['name']."\r\n";
$Indhold .= "e-mail: ".$_POST['eaddress']."\r\n";
$Indhold .= "phone: ".$_POST['telefon_nr']."\r\n";
$Indhold .= "subject: ".$_POST['subject']."\r\n\r\n";
$Indhold .=
"comment:\r\n".preg_replace("(\r\n|\r|\n)","\r\n",$_POST['comment'])."\r\n";
$name = [submitted name from form field];
$MailSuccess = mail($SendTo,$Subject,$Indhold,$FromString);
header('Location:thankyoupage.php?name='.$_POST['name']);
exit;***************************
That part of the code that I pasted above it creating those
strings ONLY IF
there are no errors, so you can just add in seb's code there.
HTH, take care.
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================Ah - see now I put the formatting how I'd *like* the user to
input it.
Because I work with anyone in any loaction, naturally the
format would be
different.
For my contact.php page - the "phone" field isn't a
requirement, but for my
quote.php it is a requirement and I just validate it just to
make sure there
is SOMETHING in the text field. Not the best way, but I trust
a true future
client will provide their phone number.
Take care Dave, glad I could be of help.
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"Dave Anderson" <[email protected]> wrote in
message
news:e68vpc$da9$[email protected]..
> Shane H wrote:
>> Dave -
>>
>> I've tweaked your code and got it working for you.
Here are the pages in
>> text:
>>
>> Source code (contact.php):
>>
http://www.avenuedesigners.com/tests/dave_source.html
>>
>> Source code (thankyoupage.php):
>>
http://www.avenuedesigners.com/tests/dave_thankyou_source.html
>>
>> HTH, take care.
>>
>
>
> Shane,
>
> Many thanks! I took a look at what you did to compare to
what I had. I
> couldn't tell what was different!? Anyhow, it works
GREAT.
>
> I noticed on your site that you have a specific format
for the phone
> number. Would it look something like this?
>
> if(!trim($_POST['phone'])) $Errors[] = "Phone";
>
> change to this:
>
>
if(!preg_match("/[0-9]{2,4}+-[0-9]{2,4}+-[0-9]{3,5}/",$_POST['telefon_nr']))
> $Errors[] = "The phone number is typed wrong. (check the
format)";
>
>
> I tried it and it doesn't seem to care *what* I put in
(alphanumeric). I'm
> sure my code is bad, but I don't know what.
>
> Thanks for your help Shane!
>
> Dave -
A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. The message is now fixed & I cannot get rid of it. Ironically, when I found this forum I was able to set up an apple Id. Please advise how to get rid of the pop-up box. Thanks!
I'm having this same problem as well and cannot advance--very irritating. All of the information is filled out correctly and I've editted my AppleID information online separately as well to get around this issue, but no luck...
-
Bypass Required Field Validation when needed in PDF Dynamic Form
I faced a tricky situation, where some fields are required, but we need to allow bypass required (mandatory) validation rule when saving the form, and require to fill such fields when submitting the form. In other words, provide flexible control when to turn On / Off this feature.
I wanted to implement a flexible solution, and I will post my findings here. Appreciate your feedback for improvements.
Steps:
1. Mark rquired fields as required.
2. Specify "Empty Message" as "This field cannot be left blank", or similar.
3. Specify "Validation Script Message" as "This field must have a proper value before submit", or similar.
4. Create a Global Form Level Variable something like "StopTotalValidation" and default as "1" means by default, Turn Off Validation for some cases.
5. For the fields which require this type of control, add the script (to be defined later) on the "validate" event:
myTools.validateForRequiredField(this);
6. Create a Script Object "myTools" and add the following script:
function initStringFunc() {
//call this function on Document Initialize
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g,"");
String.prototype.ltrim = function() {
return this.replace(/^\s+/,"");
String.prototype.rtrim = function() {
return this.replace(/\s+$/,"");
String.prototype.isEmpty = function() {
return (this == null) || this.trim() == "";
function setNodeProperty(theNode, theProperty, newValue) {
if (theNode[theProperty] != newValue) {
theNode[theProperty] = newValue;
function isNodePropertyEmpty(theNode, theProperty) {
var result;
if (theNode == null || theNode[theProperty] == null) {
result = true;
} else {
result = theNode[theProperty].isEmpty();
return result;
function disableTotalValidation() {
StopTotalValidation.value = "1";
function enableTotalValidation() {
StopTotalValidation.value = "0";
function isTotalValidationOn() {
return StopTotalValidation.value != "1";
function isTotalValidationOff() {
return StopTotalValidation.value == "1";
const conRequired = "(required)";
function validateForRequiredField(theFld) {
// Bypass Required Field Validation when Global Validation is Off.
var result=false;
if (theFld) {
if (theFld.mandatory && theFld.mandatory == "error") {
if (myTools.isNodePropertyEmpty(theFld, "rawValue")) {
myTools.setNodeProperty(theFld, "rawValue", conRequired);
if (isTotalValidationOn()) {
if (isNodePropertyEmpty(theFld, "rawValue") || theFld.rawValue.toLowerCase() == conRequired.toLowerCase()) {
result = false;
} else {
result = true;
} else {
result = true;
} else {
result = false;
return result;
7. Now, on the click of "Save" button call the function "disableTotalValidation()" and on the click of "Submit" button call the function "enableTotalValidation()".
I have just finished implementing the above solution, and as per my initial testing, it is working fine.
I will post this to my Google Docs workspace, and provide updates their.
Tarek.Hi Tarek,
I see what you mean in relation to clarity if you used the form variable approach. It was only a suggestion. Like so many things in LC, there is more than one way to finding a solution to a problem.
The triple equal sign (===) is testing if the condition is equal, but to a higher standard. It is testing if the values are identical to each other. For example if you were testing if a textfield was empty, with Equality (==) you might have this:
if (this.rawValue == null || this.rawValue == "") {
// Some script
If you use Identity (===) you can do the same thing with less script:
if (this.rawValue === null) {
// Some script
It is also useful when testing the value of an object, but also the type (eg string, number, Boolean).
Lastly, it can be used for non-identity (!==).
In relation to createNode() etc, apart from John's blog, it is covered in the LC documents: http://www.adobe.com/support/documentation/en/livecycle/documentation.html. Look for the scripting guides and the guide to the XML Form Object Model.
Good luck,
Niall -
Disabling the Print function because of blank required fields
The form created has required fields, if one or any of these fields is not answered I would like the 'Print' function disabled and a explanation popup for the users to see why. I noticed that the Email button won't work and a popup appears if any of these fields is left blank.
Any help?
FrankRequired fields should prevent submitting. They do not prevent the
user printing, because a user can print at any time. You cannot
selectively prevent printing at all (and what if a user wanted to
print out a partial form for discussion, evidence, or problem
reporting?) Adobe's programmers have clearly thought in terms of
enabling users, not restricting their experience. Right or wrong.
What you COULD do is have a printable but hidden field which says in
large letters that the form is incomplete, do not accept. Checking
scripts can hide the form from printing when conditions are met.
You could also wait to be notified of printing, and warn the user that
their printout is unacceptable.
Aandi Inston -
I’m trying to create a registration form with required and not required fields, but I’m getting a data base error (Column 'city' cannot be null) in those fields that I leave in blank. I noticed that in the Data base palette (DW CS6) all the table’s rows it said “required”. How can I get around this issue?
Thank youSet the 'city' field to NULL in the database. That will give the option of either filling in the information or leaving it blank
-
I want to make Text1 required if Text2 is left blank and vise versa
Hi all!,
I'm trying to get the javascript to make two text fields required before a form is submitted. Essentially they have to fill in text in either Text1 or text2. If they leave them both blank, the form cannot be submitted. Any thoughts?
ThanksYou can use this as the script for the Submit button:
var f= this.getField("Text1")
var g= this.getField("Text2")
if ((f.value =="") && (g.value ==""))
app.alert("You must fill in at least 1 field");
If both fields are blank, an alert message appears when the user tries to submit the form. -
Completely blank submission to FormsCentral database despite having required fields
I received a completely blank submission to my FormsCentral database. I would think that would be impossible, as I have required fields. Any clue as to why this happened? Or how to retrieve the data if someone indeed submitted a form and for some reason the data didn't come through?
Lucia,
It's a FormsCentral web link.
I have no clue what browser was used or how to even find that out. The row is completely blank.
There is one other person who has access to the database. But the row was added just after midnight, and I know it wasn't her or me.
Christine
Sent from my iPhone -
Hi!
I searched the "old" forum and have very good help from UVSAR but unfortunately I'm not able to access my message sent to that forum anymore.
[I could never thank all the people who answered because I keep receiving "Your submission has triggered the spam filter and will not be accepted.""]
I've have never use Java scripts in my life: I started about three days ago.
1) I'm using Adobe Acrobat Pro X (Windows 7)
2) I've created a form using Microsoft Word and save it as a pdf file.
3) After I created a form using Acrobat Pro X;
3.1.) This form it's not going to be submitted over Internet. It will be send by e-mail to some persons. They will receive it, fill in the form and send it back to me via e-mail. Note: I will save it with extended rights in order to allow to be read with acrobat reader (I'm the only one of the group having Professional edition).
4) In that form I've created some text fields (for now it's just what I need - no radio buttons, dropdown
menus, and so...)
5) Choosed Properties and marked 7 fields as "required";
6) Used a script I found in here: http://forums.adobe.com/thread/784322 (thank you for the authors of the thread)
if (!event.target.valueAsString) {
app.alert("My text My text", 3);
7) This script allows me to remember people to fill that 7 specific fields (when using mouse or tab).
8) So... What I really need? Here are the reasons for my request for help:
8.1.) When people use the Acrobat Reader Save button (not a button I created inside the form) it will pop up an alert message. Users will receive a pop up window telling them they need to fill those fields before saving the form and send it back to me. Can someone share a script, please? Thanks in advance.
8.2.) Is there a way to colorize the fileds that need to be filled? Again I only learned where to insert a java script yestaerday sou I'm not able to write one. I'm sorry for my newbie questions.
8.3.) Last question: In one of the fields there will be an e-mail address. On the end of the form I want to create a button like "Send by e-mail" and When someone press that button the e-mail will be sent to the address that was written in the earlier specific field. How can I do this (link a button to an e-mail address in a specific field)? Can someone help me with a script or ideas? Hope I was clear.
8.1.) UVSAR sent me the following code that works fine untill I save the document for the first time. Affter that he never shows me pop up window again.
var isFilled = true;
for (var i=0;i < this.numFields;i++){
var f = this.getNthFieldName(i);
if (this.getField(f).required && !this.getField(f).valueAsString) isFilled = false;
if (!isFilled) app.alert("You must complete all the required fields");
8.3.) With the help of UVSAR I used:
var mailto = this.getField('emaddr').valueAsString;
if (mailto!='') this.mailForm({ bUI:true, cTo:mailto, cSubject:"This is the subject", cMsg: "This is the body of
the mail." });
else app.alert("Cannot submit form until the email address field is completed");
but gives me an error (Note: I named the filed with e-mail "emaddr")
Once again Thank you so very very much to all the kind people who take their time to share knowledge...
I'm not a native speaker, sorry for some errors
Best regards
ACHi Winnie
Unfortunately I have been sick and did not read the message before. I apologize.
I have not received help beyond what is on the page. But when I get I tell you.
I hope you can get answers. If you receive, I ask that you share with me.
thank you very much
best regards
AC
Date: Mon, 27 Feb 2012 09:33:10 -0700
From: [email protected]
To: [email protected]
Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
created by Win_Form in Forms - View the full discussion
Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Forms by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
how to setup a function is cannot print out if didn't fill up all the required field on PDF form?
No way with just the free Reader. It may be done with Adobe Acrobat.
-
when the form is opened on a computer the contractor can view the fields we have completed, however when viewing from a mobile device or cell phone those fields appear blank. Any suggestions? I am at a total loss as it works when viewing from the computer. I am assuming it is a setting or maybe we need to save it a special way?
What version of Reader are they using, exactly? And are you sure they're
using Reader itself and not opening the file inside a browser window, for
example?
On Fri, Feb 6, 2015 at 5:24 PM, jessicao96457206 <[email protected]>
Maybe you are looking for
-
How do I get iTunes to NOT CONNECT AUTOMATICALLY when I plug my iPhone into my computer?
I just want to charge my iPhone. Having iTunes load everytime I plug it in slows my computer until iTunes is fully loaded, which takes a while on my older computer. For some reason, I am unable to find an answer to this simple question! I appreciat
-
Satellite P750 - Shutdown issue after removal of external monitor USB 3 hub
Have operated my Satellite P750 laptop with external DeII monitor for a year or more now. Monitor has a Usb 3 hub. (i have some ext HDD plugged into these. So far no issues. I unplugged the monitor usb hub from laptop (to create wndows image backup s
-
Anybody can tell me how to access my iCloud account from iPad ?
When trying to access iCloud account with safari, I do not have the window where I input name and password as in explorer . Anybody knows how to solve this problem? Is not possible at all? If so, it is not true hat you can use iPad without any comput
-
Sales order should not PGI'd within 80 Hrs
Hi All, Distributor will create SO today and vendor (logistic partner) will deliver products after 80Hrs from the date of PGI. So if distributor create another SO next day (tomorrow) for same customer and material (irrespective of order value and Qty
-
Fetch URL from Application Server of Saved File
Hi, I wrote a file on the Application Server using Open Dataset commands. i can see it in AL11 transaction as getting saved on the server. How can i fetch the path , where it got saved? Regards, Anantha