Highlight the required fields

Hello. I have a form with many elements like select the list, text box, and date picker. These are the required fields of the form with the required model and required value set to Yes also. I want to emphasize these required fields with the pale yellow background when loading the page. Anyone can guide me please?

For Multi Select Value:

$('.select2-choices') .css ('background-image', 'none').css('background-color','yellow');

And then, you add a line like this for each required field:

$(' #s2id_ITEM_NAME.select2-choice') .css ('background-color', 'red').css('background-image','none');

Replace nom_element with the name of the element in the page, something like P101_LOGIN, etc.

Sergio

Tags: Database

Similar Questions

  • Describe the required fields

    Hello everyone,

    You have a quick question. I'm sure it can be made somehow. I created a form and the necessary electro-regulateurs that aren't get surround in a big RED box... Can I change this color? It is very bright.

    Thanks advance.

    Lucy

    It's an Acrobat/Reader setting. In the Edit /Preferences menu, choose forms and you can adjust the "required fields highlight color" in the color of highlight Section.

    Paul

  • Prevent the 'Send Email' dialog box until the required fields are filled

    I am new to JS and fight with a last piece of code.

    I have a form with several fields. I send the form as an attachment to e-mail and need the required fields completed before the form can be sent by e-mail.

    Currently, I have a display alert message if all of the required fields are empty, but if I cancel the box warning, the 'send Email' dialog appears immediately and I can send the form even if the required fields are empty. I want the 'Send Email' box to appear only after completing all the required text boxes.

    The problem seems to be with the if/else line (IF all fields req. are empty, send alert. OTHERWISE open the box "Send email"). What is the best way to write this? Ideally, I would like to alert to list specific areas that are empty. Here is what I have at the moment - but obviously something wrong):

    If (requiredFields.length > 0) {}
    App.Alert (Error);

    } else


    var subject = this.getField("JobNumber").value + '-application form;
    this.mailDoc({)
    cTo: "[email protected]"

    })

    (Using Acrobat XI - thanks in advance!)

    LAST UPDATED 18/12/15

    Talk with someone @ Adobe (through our IT people we actually received a CONF. call w / an Acrobat expert!)

    It turned out to be the word "subject" in our Javascript. The word
    "subject" is a reserved word in newer formats and is read-only in
    Drive.  So we had to redefine the word & read "subject".

    Works great!

  • Insert the module {cc_security} and captcha and continues to receive spam on forms Adobe Catalyst submissions. Help, please! Also the required field is be circumvented.

    Insert the module {cc_security} and captcha and continues to receive spam on forms Adobe Catalyst submissions. Help, please! Also the required field is be circumvented.

    This has been resolved through Adobe Live Chat Support. Thank you

  • Explanation of the required field?

    Newby here.  So, I marked my form to have "required fields." But there is no error message when the user ignores the required fields.  Why? They are not "necessary".

    Maybe 'necessary' does not mean what I think it means.  Can you give me an idea of what "required" made reference to in a form?

    Thanks for any help you can provide.

    The "Required" property is validated only when the form is submitted. If

    you want that it is used in a different context, that you will need to use a script to do

    yourself.

  • Display the * in red color on the required fields

    Hi all

    I want to display the required field indicator * red.

    can you get it someone please let me know how to do it?

    Regrads

    Rognard

    Hello

    There seems to be a skin selector to change the icon

    . AFRequiredIconStyle

    A style class which the icon required for components of the form of the styles. You can't currently style this icon for each component.

    If you need to create a custom skin (see the Web Developer Guide) then change the global alias to for example

    . AFRequiredIconStyle {background-image: url(url-to-image)}

    Frank

  • I'd do the signature field read only until something is entered in the required fields.

    I'd do the signature field read only until something is entered in the required fields.

    Attached a sample file that has two text fields and field of signature, the signature field allows only when certain values are typed in two text fields.

    Steps to achieve this:

    (1) disable the signature field when the form is loaded

    (2) to activate when the two text fields values are not null

    Santosh-

  • How can I create a "print" button that will check the required fields before printing?

    I have a form that is almost ready to be published. There are a few required fields to fill out. I have a Setup button print and check the required fields using this JavaScript:

    var emptyFields = [];

    for (var i = 0; i < this.numFields; i ++) {}

    var f = this.getField (this.getNthFieldName (i));

    If (f.type! = "button" & & f.required ") {}

    If ((f.type=="text" & & f.value== "") |) (f.type=="checkbox" & & f.value=="Off")) emptyFields.push (f.name);

    }

    }

    If (emptyFields.length > 0) {}

    App.Alert ("error! ("You must fill in the following fields: \n" + emptyFields.join ("\n"));

    }

    Its form current you can click on the button and the required fields, the error message, but it still shows the form. Is there to allow printing not until all required fields are filled? I work in Adobe Acrobat X Pro.

    Thank you!

    In the end, use this:

    If {(emptyFields.length>0)}

    App.Alert ("error! ("You must fill in the following fields: \n" + emptyFields.join ("\n"));

    } {This}

    This.Print ();

    }

  • Programmatic access to the "required" fields

    Hello

    My form does not have a real submit button, so "kept" built-in is not function of the field of no use to me unless I can check by program the.

    So if I do 25 page 1 required fields, I don't want to have such a long statement checking if each has a null value.

    Is there a way I can "check" to see if any mandatory field is null? There may be a way to group fields in a table, or something - but it's beyond my capabilities at this time.  I'd appreciate any help!

    How did you film script to email through button?  By nature, using the button "submit" e-mail or normal button with him present URL like "mailto:[email protected] he should check the required fields are filled.»

    You can also simply put

    XFA. Form.Form1.execValidate ();  on the click event of the button.  This will force a check on required fields. (assuming that form1 is the top most name name in your) hierarchy

    Or as you have suggested more high loop through the fields check that they are required and if they are null.

  • Message for the required field

    I have created a form in Acrobat (not LiveCycle) with Acrobat X on Windows. The form must be accessible, and I need to alert users when a required field is not filed on.

    I tried to use this code in Action, the blur for the required field:

    f = getField (event.target.name)

    If (f.value.length == 0)

    {

    f.setFocus)

    App.Alert ("this field is required. Please enter a value. »)

    }

    Although the code appear in an alert message, I can't close the alert dialog box, nor can I add that to fill the required field because I can't after the closure of the dialog box.

    Does anyone have a suggestion?

    Furthermore, this line:

    f = getField (event.target.name)

    can be changed to this:

    f = event.target;

    And this:

    If (f.value.length == 0)

    should be replaced by:

    If (f.valueAsString.length == 0)

    or even better:

    If (! f.valueAsString)

    Since some entries from field (for example, numbers, 'true', 'false'), the length of the value property will be indefinite, given that the value property is not a string or an array. The code works since "".length == 0 evaluates to true, and undefined is 0 is false, but it's a little sloppy. "."

  • Thor.API.Exceptions.tcAPIException: No value is provided for the required fields

    Hello

    I use IOM APIs to create the user. I have provided all the required fields. but didn't the user to create
    This exception: == Thor.API.Exceptions.tcAPIException: no value provided for required fields

    Here is my code:

    {} public void createUser()
    try {}
    tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf) ioUtilityFactory
    .getUtility ("Thor.API.Operations.tcUserOperationsIntf");
    Hashtable CreateUserCriteria = new Hashtable();
    createUserCriteria.put ("ID Users.User", "Devesh1");
    createUserCriteria.put ("name of the Users. First","Victor");
    createUserCriteria.put ("name of the Users. Last","Fish");
    createUserCriteria.put ("Organizations.Organization name",
    "Xellerate users");
    createUserCriteria.put (Type "Users.Xellerate", "End user");
    createUserCriteria.put ("Users.Role", "Full time");
    createUserCriteria.put ("Users.Password", "abcd1234");

    moUserUtility.createUser (createUserCriteria);
    } catch (tcInvalidAttributeException e) {}
    e.printStackTrace ();
    } catch (tcAttributeMissingException e) {}
    e.printStackTrace ();
    } catch (tcDuplicateUserException e) {}
    e.printStackTrace ();
    } catch (tcAPIException e) {}
    e.printStackTrace ();
    }
    }


    Journal: is

    Thor.API.Exceptions.tcAPIException: No value is provided for the required fields
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl_1032_WLStub.createUser (unknown Source)
    at Thor.API.Operations.tcUserOperationsClient.createUser (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    to Thor.API.Base.SecurityInvocationHandler$ 1.run (unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs (unknown Source)
    at Thor.API.Base.SecurityInvocationHandler.invoke (unknown Source)
    to $Proxy0.createUser (Unknown Source)
    at the commune. DemoOim.createUser (DemoOim.java:83)
    at the commune. DemoOim.main (DemoOim.java:100)
    Caused by: Thor.API.Exceptions.tcAPIException: no value provided for required fields
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.createUser (unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.createUser (unknown Source)
    at com.thortech.xl.ejb.beans.tcUserOperationsSession.createUser (unknown Source)
    at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.createUser(tcUserOperations_voj9p2_EOImpl.java:3773)
    at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Replace
    createUserCriteria.put ("Organizations.Organization name",
    "Xellerate users");

    with

    createUserCriteria.put("Organizations.Key","1");

  • The required fields are not displayed message when left blank

    Hello

    I set fields as required in the value, the field Type as user entered - required tab. Also, I entered a message in the empty Message field. When the user fills out the form, they are allowed to send the form without fill in the fields.

    Any help is greatly appreciated.

    Thank you

    MDawn

    Use the preSubmit event to check required fields / required before sending...

    Check the wire for ideas below.

    http://forums.Adobe.com/thread/606762?TSTART=0

    Usually, if you use the required field and submit the form, it will display the warning message that the required fields are missing, and continue to submit the form. It is therefore preferable to use the programmatic approach for the control on the form submission.

    When you search for the values of field programmatically, you must set the Type property of the value type as input by the user - option.

    Thank you

    Srini

  • Change the background color of the text box for the required field

    Guys,

    I want to change the background color of textfield required when the user is in data entry Mode. And when the record is validated successfully the background color should be back to the default.

    That's what I've done so far.

    Created a Visual attribute that contains the background color.

    In the record of the creation of the data block added the code below.

    IF: SYSTEM. BLOCK_STATUS = 'NEW' THEN

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) BATCH ', VISUAL_ATTRIBUTE, 'ENABLE_COLOR');

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) VENDOR', VISUAL_ATTRIBUTE, 'ENABLE_COLOR');

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) AMOUNT ', VISUAL_ATTRIBUTE, 'ENABLE_COLOR');

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) ACCOUNTING_DATE', VISUAL_ATTRIBUTE, 'ENABLE_COLOR');

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) INVOICE_DATE', VISUAL_ATTRIBUTE, 'ENABLE_COLOR');

    ON THE OTHER

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) BATCH ', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) VENDOR', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) AMOUNT ', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) ACCOUNTING_DATE', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) INVOICE_DATE', VISUAL_ATTRIBUTE, ");

    END IF;


    And in the key to commit the following code is added

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) BATCH ', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) VENDOR', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) AMOUNT ', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) ACCOUNTING_DATE', VISUAL_ATTRIBUTE, ");

    SET_ITEM_PROPERTY ('MASTER_APM_INVOICE.) INVOICE_DATE', VISUAL_ATTRIBUTE, ");



    The problem is, form opens in the mode of data entry, so mandatory fields have changed background color, and mode query and run the query, background colors are changed in accordance with a.


    Any help how to solve this problem?


    Also, what tag should I use to highlight the code in my post, the FAQ forum says its {code: sql} but his does not and the code is not formatted.



    Concerning



    Dear Faisal Niazi,

    Write code to set the normal Visual attribute in the trigger WE POPULATE DETAILS or after REQUEST of the block trigger.

    Manu.

  • Not able to cancel page create without entering the required fields

    Hi all

    I am creating a custom page. I have a new folder creation Page. In this page the 3 fields are required. So I made these fields as required-> Yes. If the user clicks the Cancel button, it must navigate to the previous Page.

    But because of required fields, it's show "form validation failures: ' error. Is requested to enter required fields.


    Kindly help me in this.


    Thank you and best regards,

    Myvizhi

    Make the following property of the button Cancel to "True".

    Disable the side customer Validation

  • How to use Spry validator without obtaining all the required fields

    Hello

    I have a problem with a form were I use the Spry validator, I want only 4 required fields but now all fields are required and I don't know why.

    Thanks for your help!

    I finally have my answer using this tutorial:

    http://www.YouTube.com/watch?v=EdkQUEpLHdk

    Have a nice day!

Maybe you are looking for

  • Change the tab behavior and bookmark?

    (Since Opera gave up on their great browser and to focus on a clone of poor chrome, Mozilla have become my choice. There are a few trouble if.) 1. "Popper" tab behavior. I want tabs to open right in the list of the tab, so I don't have to get in the

  • Problems burning on Satellite P200-s 10

    P200-10s with recorder L802a (not the latest firmware, but I'm not for flash unless it is the last resort) I tried everything because I bought this laptop. By using Nero or the Ulead that came with the pc, I tried to turn off almost everyone hundreds

  • Satellite L630 - how to rename files or folder in the Start Menu

    I used to rename files and folders by clicking the right button of the mouse or touchpad set and choose Rename.With my new Satellite L630, if I click on the right button, the menu with the options does not appear. It does not appear when I right-clic

  • LabVIEW crashes when you open a file

    I have a simple vi which has aims to build a custom set of labview applications.  At times the .vi is corrupted (with no rhyme or reason).  After the vi get corrupted it won't open in labview and the following error message appears in the windows eve

  • Error by running Setup.exe in the installation of MS - SQL 2008

    Hello I need to install MS SQL2008 but I am unable to run setup.exe in my system. The error was the installation of the .NET framework 3.5 service pack 1 has failed, and SQL Server 2008 requires .NET framework3.5SP1 should be installed. But I install