change the color in the text box in the required field

I would like to change the color in the white box (don't know a better name for this space on the form) next to a field title. And only for the mandatory elements on a page. This could be a selection list, a text box or a text field.

I looked at several positions. I understand how to change the background color of the label of the element on the page. But not what I need.

I gave a quick glance at the last post titled "the color of text field" led me to the site

[http://apex-notes.blogspot.com/2007/12/colorful-web-forms.html]

provided by Paulo Vale. Moreover, very well done Paulo.

However, when I followed the instructions for all 3 formats ' display as ' for a field, the content of my form has disappeared and all that showed has my original banner at the top of the page.

So does anyone have an idea to share on how to change color whitebox of a page element?

Thank you
Maggie

Published by: mjhamilton on December 11, 2008 09:23

Hello Maggie,

The 'problem' with APEX, is that the deposit contains no information whether a field is required or not. Only the label has an attribute that you can set to "Required". Of course, you can create a query to retrieve items with a "Mandatory" label by:

select WORKSPACE, APPLICATION_NAME, PAGE_ID, PAGE_NAME, REGION, ITEM_NAME, ITEM_LABEL_TEMPLATE
from APEX_APPLICATION_PAGE_ITEMS
where ITEM_LABEL_TEMPLATE LIKE 'Required%' 

As Paulo wrote: you must manually set the attributes of elements of HTML form to a class (like class = 'RequiredField') and create an entry in your CSS for this class (I like. RequiredField {(background-color: #FFFFCC;}).}
Or you can write clever code automagically defines this class for all the elements that are returned by the above application. I don't have that, but you should do something like:
1. create a javascript function that onload is triggered. This js function must call an application process.
2. this AP retrieves the 'required' of repository items and returns to the js function.
3. the js function adds the class needed to these elements.

Good luck ;-)

Greetings,
Roel

http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.Logica.com/

Tags: Database

Similar Questions

  • Hi, PDF form of the guru. How to make a text box become a required field IF a drop-down list is selected as the "Yes"?

    Hi, PDF form of the guru.

    How to make a text box becomes a "required field", IF a drop-down list is selected as the "Yes"?

    and 'not required' if the drop down menu selected as 'No' or left blank.

    Any help would be greatly appreciated

    see you soon

    Use this code in the custom drop-down list field validation script:

    this.getField("Text1").required = (event.value == "Yes");

    (Change "Text1" to the actual name of your text field, of course)

  • How do you define the background color for a text box

    In older versions, that I was able to set the background color in a text box, I want to do the same in this newer version and I can not find where I would choose this option

    Hi alanb.

    Please type your text in the text box, now in the right pane of comments you will see your text, right click & Select "Properties".

    In the properties box, select the fill color to fill in the color in the text box.

    I would like to know if it works.

    Kind regards

    Nicos

  • Add the fill color of a text box

    How can I add a fill color of a text box?

    You do not have.

    Use the rectangle tool to create a fill for all about the text. Then get off this new rectangle layer below the text if the text shows. If necessary, group the tier two so that they move together.

  • 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!

  • How to change the image field captures screenshots automatically from BMP to JPEG

    How to change the image field captures screenshots automatically from BMP to JPEG

    I want to say, when I tap on the screenshot on my keyboard and paste this image in microsoft photo editor or picasa 3.0 areas of the bitmap .bmp. instead of asking the witch I´d field prefer.
    So, I open that image on the brush to convert it to. JPEG.
    It's hick very!
    is it possible to easily me this step and save or paste pictures in JPEG on my files automatically?

    Hello

    I saw that article when I was looking for one that I posted...

    I understand your problem, and the answer is that, to the best of my knowledge... NO..

    Windows records the capture in memory as bitmap, along with, even if you can paste it directly into a folder, it would be in the form of bitmap...

    The best I could find is to use the suggestion in the link I've included which refers to the

    Windows Key + PrintScreen to automatically record is in PNG format in your pictures folder...

    The only way to do what you want is with a 3rd party capture program that can be configured to save in a directory as a specific file type...

    Personally, I use a program called print screen Deluxe for this... it is a purchased program...

    I'm sure you could find something free to do what you need...

    You may need to use a different key for print screen, but the software can allow you to reprogram the PrntScrn key...

  • How to change the search fields displayed on the homepage of UCM 11g?

    Hello

    How to change the search fields displayed on the homepage of UCM 11g?

    Another option for you.

    Follow the links below.

    How to: Customize the home page of Oracle UCM with configuration manager. -Blog of BlueStudios Johns

    Example of a custom component.

    bluestudios.co.uk/blog/wp-content/uploads/2009/02/ether_homepage1.zip

    -Prashant

  • 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

  • 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

  • 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

  • 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. "."

  • 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 ();

    }

  • 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.

  • 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.

Maybe you are looking for

  • How can I open a tab in duplicate in 29.0.1 Firefox version?

    It doesn't matter what I do with the settings I can't open a tab the same url that I have a tab open to duplicate. I used to be able to right click and click duplicate. Not that the option is always there then why can it be used?

  • Skype said that I am on the phone when I'm not

    Skype is telling people that I'm on the phone when I'm not. I can still make and receive calls, but Pamela will not save, because Pamela I am already on another call. It is a Skype problem, not a problem of Pamela. Skype is transmitting a false onlin

  • Support &amp; canon ICC Profiles

    I have noriced which for many Canon papers there are two medium-sized possibilities for each document. It ends in 1/2 and the other ends in 3. What is the difference between the two? Thank you. Ed

  • 2 WRT310Ns

    I just want to know if it will work. I have 2 Linksys wireless routers, 1 is at the bottom, connected to the cable modem, and wireless, the other is on the second floor across the House. I need to extend the wireless range but also keep the 2 pieces

  • I get a msg saying windows media player cannot delete a file from the device. What should I do?

    I put an album on my sansa fuse. The synchronization process has not finished now correctly the album does not work on my mp3 player. I tried to remove it so that I can re sync and im getting this msg saying "windows media player cannot delete a file