Color of required fields


Hi all

I have a custom form with 2 fields.

FieldA-LOV(XX,YY)

FieldB becomes necessary when YY is chosen.

I am able to do fieldB if necessary, but I'm not able to get the right color (yellow).

to achieve this, I created a group of visual and that assigned to fieldB at run time using code below:

SET_ITEM_INSTANCE_PROPERTY ('FieldB', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'DATA_REQUIRED1')

The background color of DATA_REQUIRED1 is r100g100b55. But still I'm not able to find the exact yellow which is used for the other field required in applications, my yellow (r100g100b55) is a bit brighter.

Please let me know how to get the visual_attribute of the required fields and assign them to FIELDB.

Note: the entry in registry.dat is:

app.ui.requiredFieldVABGColor = 255, 0, 0 (not sure what that means)

Kind regards

Jonathan

I've reached the requirement using the

APP_ITEM_PROPERTY. SET_PROPERTY('fieldB,required,PROPERTY_TRUE);

Instead of

SET_ITEM_INSTANCE_PROPERTY

Tags: Oracle Development

Similar Questions

  • Another question about the color in required fields change

    I have 4 fields.

    The customer must enter a country name Field1

    If it's 'NL', that of Field2, Field3 and Field4 becomes necessary.

    I did it with FormCalc

    if (Field1 == "NL") then
    Field2.validate.nullTest="error"
    Field3.validate.nullTest="error"
    Field4.validate.nullTest="error"
    else
    Field2.validate.nullTest="disabled"
    Field3.validate.nullTest="disabled"
    Field4.validate.nullTest="disabled"
    endif
    
    
    

    Here's my problem:

    When field2 and field3 field4 are requered, they change color (red fill color) when it is empty

    And when they are not needed, they did not have to change color

    Can someone help me with this problem?

    Hello

    Here is a sample script to change the visual appearance of an object. Please note that the script in this example is JavaScript. https://Acrobat.com/#d=xHziYOr8zapKWtuVhWUk0w

    Hope that helps,

    Niall

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

  • 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

  • Make it a required field based on entry into another area

    So I did search the forum for answering the question of how do some fields in a required form if a value is entered in another field designated and not required if no value is entered in the corresponding field.

    For example:

    There is a field called QTY_paper, and if a value is entered in QTY_paper, then the PROGRow1 field should be required.

    If no value is entered in QTY_paper, then PROGRow1 is not necessary.

    I tried both FormCalc and Javascript, but without any result. In FormCalc, I added this script as a mouseExit on QTY_paper event:

    If ($.isNull == 0) then

    Make the required field
    PROGRow1.validate.nullTest = 'error ';
    endif

    and then I added this script in FormCalc to mouseExit on PROGRow1 event:

    If ($.isNull == 0) then

    $. validate.nullTest = "disabled".

    endif

    This happened almost word for Word from another post on the forum, so I think I'm missing something obvious here... which is weird because I'm still pretty new by adding scripts. Please help if you can!

    Yes a lot of dynamic things is not taken in charge in static PDF files, stuff works and many do not work. What a pity that you can not rebuild the form.

    While the border color does not change, the field can still be getting the required value, and so it can still work as a required field.

    The other alternative would be to make all fields and scripting in Acrobat.

  • Required fields prevents to have a red border?

    I have a form with several fields in (created in acrobat x pro). The end user (using the free player) is to see these fields as with a red border. I don't want these fields to have no border, THAT is, when the user clicks on the button 'send', one of the required fields was not filled. As it is now all these required fields have a red border regardless of information entered in them OR if the e-mail button has been pressed.

    Can I have these fields appear as all of the required fields, other, no, so when they hit the email button, have the required fields that they have no complete THEN show as having a red border?

    Sorry if the wording of this question everybody throws out... quite difficult to ask it when text using...

    And thank you again for all the time and help. This place turns out to be a goldmine lol...

    Joe

    That just the way it works. But note that if the field is enabled by the user, it behaves as desired.

    You can use your own routine to check all the fields you want to be required, in which case you would not mark as required. That's usually what I do, because it gives you more control and the ability to provide the user with information much more useful than Acrobat/Reader provides. If a required field is not filled correctly, you can set the color of the border of the color you want.

    This means that you can use the JavaScript submitForm (or mailDoc) method to present, but only after all of the fields check out.

  • Remove the red border of required fields

    Is there a way to remove the red border of required fields. ?

    No, but you can change whether a field is required or not. Whenever I've created a form to present, I'm almost always check through the fields using JavaScript to see if the form is filled enough and provide more useful if not messages. The color of the border of the required fields is controlled by a preference of the user (in forms) and JavaScript does not have the ability to control this preference.

  • 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

  • Required fields

    Given:

    form with several fields of text entry.

    the value of LOV some fields becomes invalid - not required for the operation.

    To submit:

    pl/sql procedure takes values of all the elements and, based on the values passed did he magic.

    Problem:

    required fields are marked as "required" in the apex. When LOV disables them, of course, they have a value, and a problem during "submit page" (e.g..

    "First Name must have some value. »).

    I'm hesitant to mark all items as 'non-compulsory' unceremoniously since all the elements are necessary (when they are activated by LOV) and the Red "*" is a good way to remind a user to enter a value.

    What would be a better solution?

    hope it makes sense

    P.S. help to 'Value' for the element leads to believe that 2 conditions must be met so that automatic checking of ' not null ' kick - point must be visible and '' necessary '' status = "YES". This is not true. required = yes and "point invisible triggers still control null nit.

    AZZ,

    You can set the attribute 'Required value' = 'No' and let the model as "Necessary", it will show the "*" when the element is visible. Then you can create a new type Validation "IS NOT NULL" to a Condition of ' Item = value '.

    Thank you

    Erick

  • SelectOneChoice required field validation problem

    Got a query on the selectonechoice required field validation

    Below is the code works well, I generate the list of static elements (VO)

    < af:selectOneChoice value = "#{bindings." Division.inputValue}.

    label = "Division" styleClass = "Division".

    required = "true" autoSubmit = 'true '.

    shortDesc = "#{bindings." Division1.hints.ToolTip}.

    ID = "soc1" >

    < af:forEach elements = "#{bindings." Var Division1.Items}"="row">

    "< f: selectItem itemLabel =" #{row.label} "ItemValueOptional =" #{row.label} ".

    ID = "si21x1x25" / >

    < / af:forEach >

    < / af:selectOneChoice >

    The question is how to add "- Select -" in the above code and default value "- Select -" selected must, if the value is "- Select -", he must request the validation

    I want to be the label = "- Select -" to be selected by default

  • Mark a required field in Oracle BPM

    Hello

    I want to mark a field as required in Oracle BPM ADF UI but I am unable to do so as we do in Oracle ADF. So whenever an initiator completes the form and if it leaves an empty field, its application should not be submitted. Please see the attachment snap for detail, thank you very much

    RequiredField.PNG

    The simplest solution is just to type "true" (without the quotes) in the field of the "Required" property for the field office on the form.

    Note that the field 'Account Nature' is already a field required on the form.  If your human task data XSD based, here's how you can make sure that 'Office' is a required field on all forms where it is placed.  First of all, note that your "AccountNature" is already a field required on the form.  The reason is that the item in your XSD for AccountNature probably looks like this:

    If you look at your 'Office' in the XSD element, however, it probably looks like this:

    Delete 'minOccurs = "0" ' for this item before generating the shape of the human task and this field will be also necessary.

    Dan

  • How to change the color of form fields

    I don't know how to change the color of form fields. They default to gray, but I don't know how to make a different color.

    Gray does not match the color scheme of my landing page!

    Thank you!

    I think you have two options when you are working on a landing page with an embedded format:

    • You can change the background color of the entire form field set by selecting the shape, and then clicking on the Toolbox. In the window that opens go to the second (on a paint brush icon) and select the background color you want.
    • You can change the background color of the actual fields in the form by adding CSS styles. Select the Toolbox, go to the last tab (Tools Extract page) and in the middle of this window, you will see "head | CSS | JS"- select this average CSS tab and enter the style code to get the color you want. Here is an example of code you can put in it. Note that #000000 is the color code for black. Here is more information about the code: css - background in the input fields and text color? - stack overflow

  • Required fields on forms

    Currently, we build all of our forms in HTML and uplaod in Eloqua... This does not allow us to... "required" fields to order the to Eloqua, you need to create your form in the Eloqua model.  someone has found a simple way around this... an ability to make the required fields in the form?

    Paul, the jQuery validation plugin (one of the many available) makes it very easy to add validation in your forms client-side and will also keep your code much cleaner & easy to manage than the cut and paste options, especially if you need to change the form or add new fields to a later date, etc.

    Take a look below:

    http://docs.jQuery.com/plugins/validation

    http://Speckyboy.com/2010/06/22/50-jQuery-Plugins-for-form-functionality-validation-security-and-customisation/

    If you need a helping hand with this, feel free to drop me a line

    See you soon

    Chris

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

Maybe you are looking for

  • Airpod will be included in orders after Oct?

    Unclear on the question of whether the Airpod are all simply not pre-order iPhone 7 and it will be included if you order after release of the Oct, or if it will ever be included and you will still have to buy it separately? Anyone know?

  • Chronic Condition monitoring

    MyHeart rate is low, due to a congenital heart defect, I tried a FitBit and it is not as reliable as I want, what is the accuracy of the Apple Watch? I usually have a resting rate in the middle of the 1940s and sleep as little as 28-30bpm. I would ma

  • Important emails going to spam

    I had several cases where I thought friends were very sick. These are people that I send and receive emails every day, and suddenly, they're going to the junk e-mail folder are. It's the same thing with a daily newsletter which I agree with. Worse, t

  • Skype repeatedly crashing Win - 7

    A few months ago, Skype has become unstable. (I think it's around September) He started crashing from time to time when I try and make a call. At the moment I have uninstalled/re-installed but it did not help. Since then, I've tried many fixes includ

  • NETGEAR wndr3400v3 can not play you tube videos

    Hello, I have recently set up my router wndr3400v3. Everything works well with the exception of not being able to watch videos tube. When we try on any of our devices... phones, iPad, computers laptops you tube time limit and do not play. Not sure if