Required Radio Button Colored Red in a Dynamic Form

Hi again
Okey, like the headline said, I've got some problems with required radio buttons right now. In static fields they have a border when they are required.
In dynamic forms they neither have, nor get any border.
I tried already:
1) to make a border with script (unfortunatelly it takes in the text too and is much smaller than the normal required border and will include the text => looks really ugly)
2) to paint a border with lines (unfortunatelly the box itself overlaps the border only for 0,02mm (couldn't fix it) and it looks damn ugly )
3) Cut the text out, write it in a textfield instead and border the complete box (Best solution right now... though a lot of work and won't look very good either)
Since I needed to change 25 of my forms to dynamic and all of them have some of those required radiobuttons in it, I would appreciate ANY solution that would look a little bit acceptable.
Anybody has any other idea how to get such a border (or anything similar) for these boxes?
Thanx already
Lisa
(PS.: I only use quadratic check-fields
PPS.: Sorry to bother you in the last time that much... I really try )

Sorry to say, but I think you got me a bit wrong.
It's not the radiobuttons that got in my way, it is the way they are displayed. (A field to enter information and a text. If you refer with a colour in it and it is in a dynamic form both, the input part and the text will be highlighted.)
I wanted to accomplish the following thing:
Make some kind of radiobutton or checkboxfield where only the little input part is red highlighted (with a border or something).
But neither in radiobuttons nor in checkboxes it works, does it?
Therefor it is no use in using checkboxes I think. If I do wrap those into subforms and highlight those again, not only the input part will be highlighted but also the following text. (That's why I don't understand how subforms could be of any use )
Right now I seperated the input part from the text and just highlighted the input field. Though it still doesn't look as good as I would like it to do.
If I got you wrong plz say so I am a bit tired right now and my English gets worse ;D
I'll have a closer look at those pages you suggested me on tuesday. (I'm a bit in trouble right now)
Thanx for providing me with information though
I'm allways greatfull to learn some new things ;D
(Silly people (like me) just can't learn enough so they could hide how dump they are ;D )
Byebye
Lisa

Similar Messages

  • How do I give the radio buttons a buttongroup and id dynamically as the datagrid is populated?

    I am using the following component as an item renderer for a
    <mx:DataGridColumn>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:HBox horizontalAlign="left" left="10">
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    </mx:HBox>
    </mx:Canvas>
    How do I give the radio buttons a buttongroup and id
    dynamically as the datagrid is populated?

    "nikos101" <[email protected]> wrote in
    message
    news:g83gfl$m8o$[email protected]..
    >I am using the following component as an item renderer
    for a
    ><mx:DataGridColumn>
    >
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    > <mx:HBox horizontalAlign="left" left="10">
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > </mx:HBox>
    > </mx:Canvas>
    >
    > How do I give the radio buttons a buttongroup and id
    dynamically as the
    > datagrid is populated?
    What is your actual goal?

  • Disable only one radio button in a Radiogroup using Dynamic Actions.

    Hello everyone,
    I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit with Application Express 4.1.1.00.23
    I have a radio group which has 3 radio buttons. Now in certain situations I want only one of the radio buttons to be disabled.
    I don't want to resort to Javascript for this as that would mean another piece of code that can go wrong and introduce bugs.
    Is this possible using a Dynamic Action? Although DA is also JS, I feel its much easier to maintain.
    Regards,
    Arijit

    I know, you did ask for DA
    Try to put this code in DA and run this code on page load
    =-==========================================
    var pOption = 3;
    var nameArray = $('input[name=p_v01]').map(function(){
                        return this.getAttribute('value');
                    }).get();
    for (i=0;i<nameArray.length;i++){
        if(pOption == nameArray[i]){           
            $("#P2_CHECK1_"+i).attr("disabled", true);
    ==========================================
    Plain Javascript
    <script type ="text/javascript">
    function disableCheckBox(pOption){
        var nameArray = $('input[name=p_v01]').map(function(){
                            return this.getAttribute('value');
                        }).get();
        for (i=0;i<nameArray.length;i++){
            if(pOption == nameArray[i]){           
                $("#P2_CHECK1_"+i).attr("disabled", true);
    $(document).ready(function(){
        var chkOption = 3;
        disableCheckBox(chkOption);
    </script>
    Thanks,
    Ramesh P.

  • Changing radio button colors

    When hovering over a radio button, how do you change the fill color of the radio button? The default appears to be a shaded orange, but I want the flexibility to change colors, as needed.
    Any suggestions?
    Thanks!
    jason@jones

    Try using the setBackground or setForeground methods. If that doesn't work, look through the docs for any other methods that change the color. If those don't work, look into writing a custom ui component, which is not trivial.

  • Radio Button color

    Hi,
    When my program displays, the radio buttons are gray in color.
    Is there a way I can set just the circle to white without making the whole label display white?
    Thanks in advance.
    Carol.

    try this
         JPanel panel = new JPanel();
         JRadioButton button =  new JRadioButton("button");
         button.setBackground(Color.WHITE);
         button.setContentAreaFilled(false);
         panel.add(button);
         getContentPane().add(panel);
         setSize(200,200);
         setVisible(true);

  • 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

  • Radio buttons created as required fields don't change to yellow when not submitted.

    I am creating an online form with required fields. Some of these fields are radio buttons. This issue is when the form is submitted without the required radio buttons selected the user is given an alert that they need to complete the required fields and those required fields become "highlighted" in yellow. In Mozilla (v16), the radio buttons do not change yellow. This features works in IE. The form works best with radio buttons versus drop-down or text box. Most of our employees use Mozilla, so would like to find a solution. Thanks.

    the syten should always allow you to change except you have set the "Functional authorization for buyers"
    in SPRO-MM-Purchasing-authorizationmanagement-define Function Authorizations: Purchase Order
    if this is set ethn it wont allow
    remove this config or remove the parameter id for EFB from SU01 from parameter tab

  • Dynamic radio button population

    Hi There
    I have the following logic to be implemented
    1) show two radio buttons A and B
    2) if user selectes A then ok do noting
    but if user selects B then
    display another set of radio buttons (6 radio buttons)
    Please let me know how to get the value of the radio button (A or B) before the form gets submitted
    I thought i will use custom tags if possible but not able to do that
    or if there is any other approach please help.

    Hi BasulC,
    Thanks for your quick reply.
    Actually I can do it using DOM but i need to use preexisting costom tags while creating the radio buttons and custom tags cannot be used in javascripts hence i am not able to do it in javascript
    is there no way to get the selected radio button value in the custom tag handler
    kind regards
    Proffy

  • Layering radio button exclusion groups

    I would like to create a table using radio buttons, where the heading row is one exclusion group, and the two rows below it are two more exclusion groups.
    Then, I would like each column underneath the heading to be a separate mini exclusion group.
    Finally, for whichever button is selected in the heading row, I would like only the mini exclusion group directly beneath it to be able to be used.
    Is this even possible, or can radio buttons only belong to one group at a time?
    Shoshana

    The script isn't too complicated. The problem is that you have to get around the fact that Acrobat will always let a form with a radio button group flagged as mandatory be submitted regardless of whether a radio button within the group has been selected prior to submission.
    You can do this by using two buttons: The first is a regular (non-submitting) button while the second is the actual email submit button. The catch is that the real email submit button is hidden (it can't be seen on the form, nor can it be clicked on by the user).
    The first step, which isn't really necessary but would be good practice, would be to mark the radio button group which contains the radio buttons as being mandatory. You can do this by selecting any of the radio buttons in the group which should be mandatory, going to the Object palette and setting the Type property to
    User Entered - Required. This will have the effect of Acrobat being able to highlight the radio buttons in red if the user chooses to "Highlight required fields" when filling the form.
    The second step is setting-up the two buttons. This step is identical to the second step described in the following thread (about making a check box mandatory for email submission):
    Mandatory check box before form submission. Have a look at the first reply to the thread. You should start reading at the paragraph that begins with, "The second part..."
    The script checks that the value of the check box is "1". Your script would simply check that the radio button group's rawValue property isn't an empty string.
    Stefan
    Adobe Systems

  • Error message on unclicked Radio Button

    Hello all, I was wondering how I can generate a unique error message on a required radio button on my form. I have designated the radio button as required already, but instead of the generic "missing fields" error message I would like it to generate a specific one saying "Form Must Be Reviewed with Supervisor Prior to Submission" in addition to the one that pops up when other required fields are not filled.

    One way to do it is to use 2 submit buttons.
    You want to hide the real submit button and use a "fake" submit button (just a regular button) to check the value of the field. If the field is ok then you click the real submit button programmatically.
    On the Click event of the fake submit button (JavaScript):
    if (RadioButtonList.rawValue == "") {
         xfa.host.messageBox("Form Must Be Reviewed with Supervisor Prior to Submission");
    else {
         EmailSubmitButton1.execEvent("click");
    Hope that helps!

  • Radio button & select options in same line

    Hi,
       I am working in sap 3.1 version. there I required radio button and select options in same line. here begin of line is not allowing for select options.
    Thanks,
    suma

    Hi,
    Hope the below code helps you.
    SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT [/][pos](len)
                              {text|{[text] FOR FIELD sel}}
                              [VISIBLE LENGTH vlen]
                              [MODIF ID modid]
                              [ldb_additions].
      parameters: p1 radiobutton group 1,
                  p2 radiobutton group 1.
      select-options s_date for sy-datum.
      SELECTION-SCREEN END OF LINE.
    You can use SELECTION-SCREEN COMMENT for placing the appropriate comments at respective positions.
    Regards,
    Satya

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • Simple PHP radio buttons

    Hi. I'm trying to program some radio buttons to put in an ASP
    form, using PHP coding. I just need something simple for three
    yes/no questions.
    I've looked around online and haven't found anything of much
    help. Any help is appreciated.
    Thanks. :)

    Well, that's probably not the best example. Let's try this
    one -
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Radiobutton Test</title>
    </head>
    <body>
    <?php
    if (isset($_POST['submit']) && $_POST['submit'] ==
    'SUBMIT') {
    echo "Radiobutton = " . $_POST['radiobutton'] . "<br
    />";
    ?>
    <form name="form1" method="post" action="">
    <label for="radiobutton">red</label>
    <input name="radiobutton" type="radio" value="red"
    id="redbutton">
    <label for="label">green</label>
    <input name="radiobutton" type="radio" value="green"
    id="greenbutton">
    <label for="radio">blue</label>
    <input name="radiobutton" type="radio" value="blue"
    id="bluebutton">
    <input type="submit" name="submit" id="submit"
    value="SUBMIT">
    </form>
    </body>
    </html>
    You can see it working here -
    http://www.murraytestsite.com/radiobuttontest.php
    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
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > There's still a good deal of information missing here.
    Perhaps a look at
    > this code/page will help you figure out what needs to be
    added to your PHP
    > script -
    >
    > <?php
    >
    > if (isset($_POST['submit']) && $_POST['submit']
    == 'SUBMIT') {
    > foreach($_POST as $key => $value) {
    > echo $key . " => " . $value . "<br>";
    > }
    > exit();
    > }
    >
    >
    > ?>
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    > "
    http://www.w3.org/TR/html4/strict.dtd">
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > <title>Radiobutton Test</title>
    > </head>
    >
    > <body>
    > <form name="form1" method="post" action="">
    > <label for="radiobutton">red</label>
    > <input name="radiobutton" type="radio" value="red"
    id="redbutton">
    > <label for="label">green</label>
    > <input name="radiobutton" type="radio" value="green"
    id="greenbutton">
    > <label for="radio">blue</label>
    > <input name="radiobutton" type="radio" value="blue"
    id="bluebutton">
    > <input type="submit" name="submit" id="submit"
    value="SUBMIT">
    > </form>
    > </body>
    > </html>
    >
    > Your script will need to pick up the value of the
    radiobutton group, as I
    > have done above, and add it to the body of the mail
    message.
    >
    > --
    > 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
    > ==================
    >
    >
    > "Quiet Winter" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Yes, it seems I'm confusing you, so I'll post it.
    The HTML not working
    >> thing
    >> was actually something to do with my FTP provider,
    so I won't even go
    >> into that
    >> anymore, since it's off-subject for what you can
    help me with.
    >>
    >> Here's my PHP script:
    >>
    >> <?php
    >>
    >> $EmailFrom = "[email protected]";
    >> $EmailTo = "[email protected]";
    >> $Subject = "Referral Information";
    >> $Name = Trim(stripslashes($_POST['Name']));
    >> $Date = Trim(stripslashes($_POST['Date']));
    >> $Address = Trim(stripslashes($_POST['Address']));
    >> $City = Trim(stripslashes($_POST['City']));
    >> $State = Trim(stripslashes($_POST['State']));
    >> $Zip = Trim(stripslashes($_POST['Zip']));
    >> $Email = Trim(stripslashes($_POST['Email']));
    >> $Phone = Trim(stripslashes($_POST['Phone']));
    >>
    >>
    >> $validationOK=true;
    >> if (Trim($Name)=="") $validationOK=false;
    >> if (!$validationOK) {
    >> print "<meta http-equiv=\"refresh\"
    content=\"0;URL=error.htm\">";
    >> exit;
    >> }
    >>
    >> $Body = "";
    >> $Body .= "Name: ";
    >> $Body .= $Name;
    >> $Body .= "\n";
    >> $Body .= "Date: ";
    >> $Body .= $Date;
    >> $Body .= "\n";
    >> $Body .= "Address: ";
    >> $Body .= $Address;
    >> $Body .= "\n";
    >> $Body .= "City: ";
    >> $Body .= $City;
    >> $Body .= "\n";
    >> $Body .= "State: ";
    >> $Body .= $State;
    >> $Body .= "\n";
    >> $Body .= "Zip: ";
    >> $Body .= $Zip;
    >> $Body .= "\n";
    >> $Body .= "Email: ";
    >> $Body .= $Email;
    >> $Body .= "\n";
    >> $Body .= "Phone: ";
    >> $Body .= $Phone;
    >>
    >>
    >> $success = mail($EmailTo, $Subject, $Body, "From:
    <$EmailFrom>");
    >>
    >> if ($success){
    >> print "<meta http-equiv=\"refresh\"
    content=\"0;URL=sent.html\">";
    >> }
    >> else{
    >> print "<meta http-equiv=\"refresh\"
    content=\"0;URL=error.htm\">";
    >> }
    >> ?>
    >>
    >> The form is mostly fill-ins, as you can see, and I
    want to add three
    >> yes/no
    >> questions.
    >>
    >

  • Help With Radio Buttons -- URGENT!!

    Hi i am new to using UI compents in flash.
    Basically i havnt a clue where to start.
    Just some simple action script will help and be much
    appreciated if someone can give me it.
    Basically i have a question to ask which requires radio
    buttons to answer the question.
    I have a question and the answers are A, B, C, D.
    I want:
    A to equal 1
    B to equal 2
    C to equal 3
    D to equal 4
    E to equal 5
    Would someone be able to tell me how to set up the radio
    button so that the value of the radio button is stored into an
    array called SCORE.
    i dont need a tutor for arrays, i can do them, i just need
    help with the radio buttons so a reference to an array would be
    enough, eg how to store the answer from the radio button in an
    array.
    Thank you

    Place the radio buttons on the stage and set their parameters
    to what you need. Make sure that for each group of radio buttons
    you give them the same group name. Then you could use something
    like this:
    var listenerObject:Object = new Object();
    var answerArr:Array = new Array();
    listenerObject.click = function(eventObj:Object) {
    answerArr.push(eventObj.target.selectedData);
    trace(answerArr);
    radioGroup.addEventListener("click", listenerObject);
    radioGroup refers to the group name for the buttons.
    eventObj.target will refer to the actual radio button
    clicked.
    Tim

  • Capturing user response based on radio button

    I am trying to capture user response based on yes or no reply to a required radio button.  If they answer yes, they need to provide details.  The radio button values are N and Y, nothing listed under item, the captions are turned off. I used the LiveCyclePopUp.pdf sample by George Kaiser as a go-by and modified for my radio button/text field name and added the visible/invisible, but no luck.
    Here is what I'm trying, but it's not working, nothing happens when I click either yes or no, am using javascript. 
    Once this is working right, if possible, I would like to add to my submit button a double check to make sure if this radio button answer is Y and the text box is null, go back and provide the answer, but the most important part is to get this part working.  Any ideas what I'm missing?  Thank you!
    switch (this.rawValue)
        case "Y":
        Response25AY.presence = "visible";
        Response25AY = xfa.host.response("Please enter "YES" details (date, injury details, corrective action) below", "Q25A YES DETAILS", "Please enter "YES" details (date, injury details, corrective action) here . . . ");
        break;
        case "N":
        Response25AY.presence = "invisible";
        break;

    Hi,
    Firstly, the syntax is JavaScript, so when setting the Response25AY, you would need to include .rawValue:
    Use of quotation marks within the script will give a syntax error (around the YES).
    A small note: I would not duplicate the question as a default value. It does not really add value.
    So this should be closer:
    Response25AY.rawValue = xfa.host.response("Please enter YES details (date, injury details, corrective action) below", "Q25A YES DETAILS");
    Can you check the relative reference from the radio button group to the Response25AY object. It may be that the reference in the script is not full enough and is incomplete.
    Also I would place this script in the click event of the radio button exclusion group.
    Lastly, check the JavaScript Console (Control+J) when previewing the form, for errors.
    Hope that helps,
    Niall

Maybe you are looking for