Validating and highlighting a form fields.

Hi all!
I have a form, with a lot of fields, which must be NOT blank. And they must NOT be highlighted.
So, on the one hand: i have to make these fields required, for don't let users print the form with blank fields. But if I’ll do it with standard settings, the fields will be highlighted with a red color (default settings of the acrobat reader). Yes, these settings can be changed in Acrobat Reader, but as the form will be used by a lot of users - i can't force them all change their settings.
On the other hand: If the form fields are set to be optional, then validation scripts don't work on empty fields.
So, is there any ways to solve this problem?

Well, then not only red borders disapper, but also the blue highlight of fields background, so, users can't see where to type text. And that is bad(
So, the only way i can see - is to turn off highlight (app.runtimeHighlight = false;), and also, chance fields fillColor, like that:
enter: this.fillColor = "255,255,255";
initialize: this.fillColor = "204,215,255";
exit: this.fillColor = "204,215,255";
prePrint: this.fillColor = "255,255,255";
But this way there will be a lot of "monkeyjob" to change color setting of every field...

Similar Messages

  • How does one strip out all Live Cycle data from a PDF and rebuild the form fields in Acrobat?

    Someone in a different department built a bunch of forms in Live Cycle. We now need to make minor edits to these forms but we all have Macs and can't use Live Cycle. Currently our only option to change a date and a name on each form  is to buy a new Windows workstation, buy a copy of Live Cycle and train someone for it.
    I understand the Live Cycle technology and Acrobat technology for forms are somehow different but there must be a way to just strip out all the Live Cycle form programming so that I just have the bare PDF with the text and layout.  Then make the text edits and rebuild the form fields in Acrobat.

    It depends on your PDF. Is the PDF a static XFA or a dynamic XFA?
    You can check to see if the PDF is static/dynamic by clicking File=>Save As, and it should say static or dynamic PDF as file type.
    iText will work with Static XFA forms created in LiveCycle. Dynamic XFA forms are not supported.
    You can also submit XML data to a server side script and parse the XML data using C# system.xml.xmlreader.
    Another tool that may speed the development of the project is:
    http://www.fdftoolkit.net/
    Note: FDFToolkit.net utilizes iText Technologies.

  • I have an email validation script on my page and a populate form fields script that doesn't work unless it's the only script written. Here are the scripts. Thanks

              <script type="text/javascript"><!--
    function validateForm() {
    with (document.drbrake) {
    var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
    if (fullname.value == "") alertMsg += "\nfullname";
    if (emailcheck.value == "") alertMsg += "\nemailcheck";
    if (telephone.value == "") alertMsg += "\ntelephone";
    if (selectproduct.value == "") alertMsg += "\nselectproduct";
    if (problem.value == "") alertMsg += "\nproblem";
    if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") { alert(alertMsg);
    return false;
    } else {
    return true;
    // -->
    </script>
            <script language="JavaScript1.2">
    //Advanced Email Check credit-
    //By JavaScript Kit (http://www.javascriptkit.com)
    //Over 200+ free scripts here!
    var testresults
    function checkemail(){
    var str=document.validation.emailcheck.value
    var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$ /i
    if (filter.test(str))
    testresults=true
    else{
    alert("Please input a valid email address!")
    testresults=false
    return (testresults)
            </script>
                                <script>
    function checkbae(){
    if (document.layers||document.getElementById||document.all)
    return checkemail()
    else
    return true
    </script>

    I do see issues with the script, but do you realize that HTML5 has all this capability build in, so not a single bit of the code you posted is needed? Of course there may be a reason you are doing it the way you are, but I don't know what that reason would be.
    In your forms, you can simply add "required" to an input field to make it required. And by making an email field the email type, it will automatically be validated for correctness. See below:
    <input type='text' value='<?php echo last_name ?>' name='last_name' required />
    <input type='email' value='<?php echo email ?>' name='email' required />
    Assuming that your form is processed by PHP, you would then use further validation in PHP. But the HTML5 validation is just as good as javascript validation and easier to use.
    With the HTML5 validation, all fields remain populated and the form cannot be submitted if anything fails validation.  I added the value attribute to the input examples because normally, if the PHP validation fails, you want to re-populate the form with what is stored in the POST array.

  • Adobe Professional 8 and Mozilla Firefox form fields

    I have created form fields and comments in Adobe 8 Professional to cover text.  When using Professional 8 to view the document in the Firefox 21.0 the form fields and comments boxes do not show up (they are read only and locked).  When viewing the document using Reader 8 or Standard 9 they do show up.  Is there something else I am to do to prepare the document so that the form fields and comments are visible in Professional?

    FireFox has a built in PDF viewer.
    It does not work with form fields (https://support.mozilla.org/en-US/questions/950946)
    A really old version of FireFox won't show the problem because it uses Adobe software instead.
    It's possible to set up FireFox to use Adobe software again, but only computer by computer.
    Botttom line is your instructions to users need to make it really clear what they must do, and simply having Adobe Reader or Acrobat installed is not enough.

  • Password-protect and hide one form field

    Hi there,
    I have been browsing through old forum discussions in search of an answer to my question.  A code George Johnson posted was really helpful, but there's  one more function I need to add to it and am struggling to figure it out on my own.
    I am creating a PDF with form fields.  Different depts within the organization will review this PDF and pass it back and forth.  The Admin dept needs one text field called "internal comments" that they can password protect.  They'd like to be able to add text, then password-protect that one field so it's hidden for other depts who review this PDF.  Admin will need the copy to be visible to them when they enter their password. 
    The script I found works really well (see below).  I set up a button to house the script, and when you click it, it locks and unlocks the "internal comments" text field with the password.  However, I can't figure out how to HIDE the "internal comments" text field after someone in Admin inputs their information.   I tried setting up a Show/Hide Field action, but I can't get it to work.  And I'm just not savvy enough to know how to alter the Javascript.
    How can I specify that the "internal comments" text field be HIDDEN when a user enters their password for "deactivate this field", and VISIBLE when they enter a password for "activate this field"?
    Any help would be greatly appreciated!
    (function () {
        // Get one of the fields in the group
        var f = getField("private.name");
        // Determine new readonly state, which
        // is the opposite of the current state
        var readonly = !f.readonly;
        var readonly_desc = readonly ? "deactivate" : "activate";
        // Ask user for password
        var resp = app.response({
            cQuestion: "To " + readonly_desc + " the fields, enter the password:",
            cTitle: "Enter password",
            bPassword: true,
            cLabel: "Password"
        switch (resp) {
        case "your_password": // Your password goes here
            getField("private").readonly = readonly;
            app.alert("The fields are now " + readonly_desc + "d.", 3);
            break;
        case null : // User pressed Cancel button
            break;
        default : // Incorrect password
            app.alert("Incorrect password.", 1);
            break;

    You could modify the section of code to something like:
            case "your_password": // Your password goes here
            getField("private").readonly = readonly;
            getField("private").display = readonly ? display.hidden : display.visible;
            app.alert("The fields are now " + readonly_desc + ".", 3);
            break;
    So it toggles both the readonly property and the display property.
    Edit: corrected typo.

  • Mac OS X Preview application and phantom blank form fields

    I created a "employment application form" for my company in Acrobat. Occasionally our HR department will get a returned application form with the "phantom blank form fields". The information is there but invisible. I used the export form data and have been able to recover the data and make a viewable .pdf again but I would like to see if any one else has been encountering problems like this and what the solution may be.
    In this thread http://forums.adobe.com/message/4746439 Brian points out that it's likely that folks are using the Mac OS X Preview rather than Reader to fill in the form (thought for a long time that it was some sort of platform issue - the Mac thing makes perfect sense). Is there a way that I could possibly avert this problem when creating and distributing the document out of Acrobat?
    Regards

    Workaround:
    http://blogs.adobe.com/pdfdevjunkie/2009/11/script_to_fix_mac_osx_previewa.html
    Solution: Don't use Preview.

  • Highlight current form field with css

    Anyone know how to highlight the current text box a user is
    in - using css
    Im thinking of accessibilty and the benefit it could have for
    people with visual acuity problems
    Thanks

    "Glowing text fields" - here:
    http://sourtea.com/articles.php
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Web Dev Articles, Photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "quiero mas" <[email protected]> wrote in message
    news:edqjq5$t22$[email protected]..
    > Anyone know how to highlight the current text box a user
    is in - using css
    > Im thinking of accessibilty and the benefit it could
    have for people with
    > visual acuity problems
    >
    > Thanks

  • Help needed for Validating and Redireting website form

    Hello
    I know that this is probably a beginners question, but I
    can't seem to figure it out. Yes I am rookie.
    I want my form to validate itselves and if it was successful
    to redirect to a website that was selected by the client from a
    drop-down menu in the form.
    I have tried to use a jumpmenu but the problem is that it
    redirects the webbsite the moment the client makes a selection.
    e.g.
    Client select between three options
    Yahoo
    Google
    Vista
    Client enters details
    Name
    E-Mail
    Then submit form. If above entered detailed was validated
    simply as e.g. for containing an e-mail address the form should
    then redirect to user choice.
    I prefer to use a Javascript is possible.
    Thank you
    David

    I would probably advise server side code to accomplish this
    .. in whatever
    server model you use.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "DavidLeRoux" <[email protected]> wrote in
    message
    news:fsj53v$55d$[email protected]..
    > Hello
    >
    > I know that this is probably a beginners question, but I
    can't seem to
    > figure
    > it out. Yes I am rookie.
    >
    > I want my form to validate itselves and if it was
    successful to redirect
    > to a
    > website that was selected by the client from a drop-down
    menu in the form.
    >
    > I have tried to use a jumpmenu but the problem is that
    it redirects the
    > webbsite the moment the client makes a selection.
    >
    > e.g.
    >
    > Client select between three options
    > Yahoo
    > Google
    > Vista
    >
    > Client enters details
    > Name
    > E-Mail
    >
    > Then submit form. If above entered detailed was
    validated simply as e.g.
    > for
    > containing an e-mail address the form should then
    redirect to user choice.
    > I prefer to use a Javascript is possible.
    >
    > Thank you
    >
    > David
    >

  • How Do I Highlight Any Form Field

    I would like to know how to highlight any element put in a
    form, when it is click on
    Thanks

    Depending on your source, you can do one of two things. If
    you are trying to get the yellow highlight that comes default with
    FF2 & 3, you can just use CSS:
    input:focus {
    background-color: #FFFEEE; // this is a light yellow
    Another alternative is to use javascript on the elements
    onclick event
    onclick="highlight(this)";
    function highlight(element) {
    Spry.Widget.Utils.addClassName(element,
    "highlightClassName");
    There are other alternatives as well, depending on your exact
    needs, but these should get you started at least.

  • Automatically displaying the error text for a form field when the validator fails?

    Hi,
    Flex 2 has a very nice feature to display custom text next to
    a form field whose validation failed. But the user has to move the
    mouse over the form field to display the text. Is there a way to
    invoke this feature programmatically?
    What I would like to do is validate form fields on submit and
    - if validation fails for a form field - set focus on that form
    field and automatically display the custom error text in the red
    blurb. Focusing works fine but I cant' get the text to render...
    Markus

    Thanks Bregent.
    Weirdest thing...I just tried a Google search for a solution to this problem and came across another thread on this forum.  By the time I got to the bottom of it I realised one of those taking part was myself from years ago!  Jeesh, been here before or what!
    Changed my recordset to...
    <%
    Dim rsPROP__MMColParam
    rsPROP__MMColParam = "0"
    If (Request.Form("categoryID") <> "") Then
      rsPROP__MMColParam = Request.Form("categoryID")
    End If
    %>
    <%
    Dim rsPROP__MMColParam1
    rsPROP__MMColParam1 = "1"
    If (Request.Form("categoryID") <> "") Then
      rsPROP__MMColParam1 = Request.Form("categoryID")
    End If
    %>
    <%
    Dim rsPROP
    Dim rsPROP_cmd
    Dim rsPROP_numRows
    Set rsPROP_cmd = Server.CreateObject ("ADODB.Command")
    rsPROP_cmd.ActiveConnection = MM_cs_STRING
    rsPROP_cmd.CommandText = "SELECT prodid, product, categoryID FROM dbo.products WHERE ISNULL(?,0) = 0 OR categoryID = ?"
    rsPROP_cmd.Prepared = true
    rsPROP_cmd.Parameters.Append rsPROP_cmd.CreateParameter("param1", 5, 1, -1, rsPROP__MMColParam) ' adDouble
    rsPROP_cmd.Parameters.Append rsPROP_cmd.CreateParameter("param2", 5, 1, -1, rsPROP__MMColParam) ' adDouble
    Set rsPROP = rsPROP_cmd.Execute
    rsPROP_numRows = 0
    %>
    ...and it works fine.
    Appreciate the help. I would have taken your advice and done an If Else on the WHERE clause to acheive the same.
    Thank you.
    NJ

  • How do I create a form field ONLY template in Acrobat 9 Pro that will let the user enter and print only the form field data on a pre-printed form?

    This template will be used to type in information that will then be printed on an agency's official, barcoded form loaded in a printer (instead of blank paper.)  Only the user-entered info should print on the pre-printed form.  Users will use Adobe Reader to complete their templates; they do not have Acrobat.  Thank you!

    Use the template as non-printable background and add the form fields.

  • InDesign CS6 & CC - form field PDF output very erratic, unusable, disappointing ...failure.

    Hi
    Until very recently, my workflow has been to add the form fields in Acrobat. However due to problems getting form fields to tag properly in this workflow the client has requested that the form fields be added in InDesign which on one page or very simple tests forms appeared to work fine. Based on successful tests with single page test documents we embarked on a much larger job with a very false sense of confidence
    I've just spent several days adding complex form fields to a 26 page form in multiple languages which includes text fields, check boxes and combo boxes. When output as an interactive PDF, several of the text fields and combo boxes do not highlight as form fields, but when clicked on repeatedly sometimes behave as check boxes, not as text input fields and sometimes highlight as a field when moused over, but are otherwise inert. I have tried using both text frames and images frames to create the text fields from indesign with similar results.
    Check boxes sometimes work, in other cases, give an "on" value rather than a check mark which disappears when you click on another check box or move your curser off the check box.
    d as being capable of
    I've spent several days now, reinstalling software, downloading the CC trial version to see if a later version would give better results, Outpting single pages, smaller page batches but nothing I have tried has improved this problem. The results are basically unusable, which is a major disappointment because it means that InDesign is incapable of performing a task it is advertised as being capable of. I am about to begin the tedious task of rebuilding this form in acrobat, but hope that someone from adobe will be willing to weigh in on this subject. If needed I can provide both the source files and the disappointing results.
    Thanks in advance for any suggestions on salvaging something from this situation

    Hi Derek
    Thanks for sounding in. Yes, up until now I have been doing the layout in InDesign and adding form fields in Acrobat. But there are two major flaws with this workflow;
    1. there is no way to properly tag form fields in acrobat as the accessibility tool "Add form fields to tags" does not appear to do anything in the way of adding tags, so in the age of accessibility these forms are basically unusable to a person using a blind reader
    2. when the client makes edits (which they always do), you have a big workflow downstream, at the very least you have to go through and cut and paste from the old PDF to the new PDF
    Besides which Adobe has boldly made the claim that, as of CS6, the form fields can be set-up in InDesign...

  • Adding Form Fields to Structure

    I am working with Adobe Acrobat Pro v9 with a PowerPoint document that I converted to a PDF.  I'm working on making it accessible.  It is a simple course certificate with one form field, a text box that the user simply types their name in.  When I run Accessibility: Full Check I get one error message relating to adding form fields to structure.
    It says I need to choose Adanced Accessibility: Add Form Fields to PDF Tags.  When I do that and run the Full Check again, I continue to get the same message.
    Am I missing a step?  Or is there anything else I need to do?
    Thanks!

    Just some nattering here, but -
    After any edits/changes save the PDF before running Full Checker again.
    Open the Tags panel, expand the structure tree, from the Options menu turn on Highlight Content.
    Walk down the tree. Look for <Form>.
    From the Options menu (for the Tags panel) use "Find".
    Look for Unmarked Annotations.
    Note that "Run Form Field Recognition" will add <Form> to the structure tree.
    However, the OBJR beneath it is "generic" and not "your" form field.
    For this situation you'd have to add yours (use Find - the dialog has a button to permit tagging an item).
    Once the form field annotation is "in" the structure tree you'll want to ensure it is positioned appropriately; in context of the page's logical hierarchy.
    Be well...

  • Link a Form Field to new Text Field

    PDF - form field
    Looking for a code to link a form field(text_1, on page #5) to
    another, new form field(text_2, on pages 2-4).
    Maybe a "Page Properties" action (i.e., Page Open: field text_2 = field text_1)
    ~~
    Why....
    busy but here's why
    In the PDF, there are Form fields on page 5 which interface (externalinterface) with an RMA ( a SWF) on page 2.
    This all works well.
    As the form fields must be carried forward (from page 5 to page 2... to interface the RMA),
    the orignal page 5, From fields are copied to pages 2-4 and then "Hidden".
    Again, this works just fine.
    A reset "action" (button) was added to, well, clear the Form Field for easy reuse.
    The reset ''action' does it's job and clears ALL form fields with the same "Name".... on every /all pages.
    This causes the dynamic interface, with the RMA, to display blank fields (within the SWF).
    This will effect the User's experience.
    ~~
    Work aound.....
    Find a way to label the Form Fields (page 5) so that "only they" are reset, and no others.
    Create a link of Form Field inputs on page 5 (with names... x,y,z),
    to new Form Fields pages 2-4 (with a differnet names... a,b,c).
    Thanks in advance for your help....
    DS

    Hi jm,
    This may be what you are after. No text wrap, but notes are there.
    Type an account number into the Enquire table to get Client and Contact
    Formula in B2 (and Fill Right)
    =INDEX(Database::B,MATCH($A2,Database::$A,0))
    Large notes display table with Wrap Text
    Formula is
    =INDEX(Database::D,MATCH(Enquire::$A2,Database::A,0))
    All together:
    Change it around if you want to look up by Client instead of Account
    Regards,
    Ian.

  • How can I pass a variable to a form to pre-fill form fields on load?

    Hi all,
    I am developing a Windows Form Applicaiton in C# to register new users and walk them through a signup process.The application does a lot of other things as well. This part of it collects their personal information and saves the data to the database. Part of the process requires the user to complete a pdf form (W-4 tax form). I would like to pre-populate as many form fields as possible for them when the pdf launches, and not have them enter anything to get their data to prefill the form fields.
    My issue is I can't figure out how to get the pdf to know who is loading the form so I can do the SQL select and populate the form fields. I need to do a select * from Table where UniqueID="xxxxx" but how can I get the form to know on load what "xxxxx" is so it grabs the users personal info from the database?
    I have searched high and low and found nothing on how to do this without doing some hoakey hack outside of the application or pdf doc.
    I am creating/editing the form in LiveCycle Designer 8 and am loading the form for use by the user in acrobat 9.
    Any help,ideas, or nudging in the right direction would be much appreciated!

    I found this solution:
    REPORT YRT_TEST4.
    data: r_range type range of matnr.
    perform test changing r_range.
    *& Form test
    form test changing p_r_range like r_range.
    endform. " test
    REgards,
    Ravi

Maybe you are looking for

  • Problem with Left Click (mighty mouse) and flash content

    Hi, first sorry for my bad english... Well I have an issue with the left click (i have mighty mouse) and flash content in Firefox: if i'm using Firefox and then change to any other app, when i get back to firefox i have no left click anymore... So i

  • Can't get combo audio jack to pick up microphone

    I have a G710 Lenovo laptop. It comes with a combo audio jack. I tried plugging my microphone it in but it wouldnt pick it up, it would only register the headphones. I bought a splitter for it and it still wont pick up the microphone. I know the micr

  • Is it possible to upgrade the processor for my HP Pavilion g6-2244sa?

    Hi everyone, i'm just curious as to whether or not I can upgrade the processor in my HP Pavilion g6-2244sa. It currently has the AMD E2-1800 APU (@1.70ghz, dual core) installed. It also has 8gb DDR3 RAM. The laptop is awesome, it has a decent graphic

  • Project 2013 freezes in Team planner view

    Hi, While right clicking and changing assignments in a Project file the Team planner freezes and Project must be restarted, this happens all the time and too frequent. The first thing that happens is that the large info box which is shown on right cl

  • Can i use cs6 on a mac and a pc on one license

    - we have both in our office. I don't know if we ahve to buy cs6 mac version AND cs6 pc version or if we can buy a multiuser license and download the mac version to our mac and the pc version to our pc. i think i may have the answer - a volume licens