Radio Button to make other field Mandatory

I have two Radio Buttons that I want when clicked on (either one) to make a Number Field mandatory. I have viewed many websites on setting a mandatory field but the script I am using will not work. I have tried a couple ways of writing it but I seem to be missing something.
I have used this script in the Show of: click & change
Here is the script that I'm using right now.
if  (this.rawValue==1)   
AssemblyNu-1.mandatory ="error";
else
AssemblyNu-1.mandatory ="disabled";
And this one:
if (this.rawValue==2)
AssemblyNu-1.mandatory ="error";
else
AssemblyNu-1.mandatory ="disabled";
Thanks,
HHud5757

So, I put a quick form together to test your code.
On the change event of the radio button list (not the radio button itself), I added:
if (this.rawValue == 1) tfTest.mandatory = "error";
else tfTest.mandatory = "disabled";
In my case, the radio button with the value of 1 is the one I want to make the field mandatory. If you want either button to make it mandatory, then use:
if (this.rawValue == 1 || this.rawValue == 2) tfTest.mandatory = "error";

Similar Messages

  • How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?

    How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?
    So this what I'm trying to do:
    (     )   |TEXT FIELD|
    (     )   |TEXT FIELD|
    (     )   |                  |
    (     )   |TEXT FIELD|
    I have a radio button: (     )
    and a text field: |TEXT FIELD|
    The third text field is blank, and I would like for the radio button next to it greyed out (user can't click on it) since the text field is blank. Is this possible to achieve? I'm assuming I'll have to use javascript, but what would the code be and would it be entered in the javascript editor for the text field or the radio button?
    Thanks in advance guys

    Hey, thanks, but it didn't work
    I have the text fields as read only. Could that be why it's not working? Should I make the fields not read only?
    Thanks,

  • How to make a field Mandatory in a Table view?

    How to make a field Mandatory in a Table view?
    The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
    Please can anyone of you guide me in this approach?
    Jagadish.G

    Hi Jagadish,
    have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
    Re: Assignment Block Mandatory
    regards
    Ismail
    Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM

  • How to make extended field mandatory in Master Agreement

    Hello All,
    I am new to SAP CLM, and I have requirement where one extended field in master agreement needs to be made as mandatory field.
    I tried in extension definition but check box to make it required is disabled and I am unable to find other way to do it.
    Can some one help me and Please let me know how make extended fields mandatory in CLM.
    Regards,
    Prabhat

    Hi
    This could be achieved using Page Customization.Go to Setup-> User Interface-> Page Customization, open master agreement object (create new with UI ID:contracts.contract.ui.buyside.default if doesn't exist ) and add a new customization for extended field with Property set to Required.
    Regards
    Mudit Saini

  • How to create popup window with radio buttons and a input field

    Hi Guys,
    Can somebody give some directions to create a stand alone program to create a window popup with 2 radio button and an input field for getting text value. I need to update the text value in a custom table.
    I will call this stand alone program from an user exit. 
    Please give me the guidance how go about it or please give any tutorial you have.
    Thanks,
    Mini

    Hi,
    There are multiple aspects of your requirements. So let's take them one at a time.
    You can achieve it in the report program or you can use a combination of the both along.
    You can create a standalone report program using the ABAP Editor (SE38). In the report program you can call the SAP Module pool program by CALL Screen <screen number>. And then in the module pool program you an create a subscreen and can handle the window popup with 2 radio button and an input field for getting the text.
    For help - Module Pool programs you can search in ABAP Editor with DEMODYNPRO* and you will ge the entire demo code for all dialog related code.
    For Report and other Module pool help you can have a look at the following:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/a1ff9b8d0c0986e10000000a42189c/frameset.htm
    Hope this helps. Let me know if you need any more details.
    Thanks,
    Samantak.

  • How to make a field mandatory in billing

    How to make a field mandatory in billing document,if m right with the help of incomplition log but how.....
         plz reply the full configuration.

    Hi Mohan,
    We normally create a billing document with reference any other document say Order or delivery.
    so, all the necessary information in the invoice will be taken from preceeding doucments. Thats way in the order level we check for incompletion log. If any important data is missing in the order level then the succeding documents will not be created.
    Thats way in the billing documents all the necessary information will come automatically either from preceeding documents or from master data.
    Still you want to make any field mandatory, you can do these by modifieing Billing documents user exists,you can make which ever the fields are mandatory and to be checked before saving. so when you are going to save the invoice, it will check if these fields are maintained or not.
    Hope this is clear.
    Reward if helpful.
    Thanks,
    Praveen

  • How to make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

  • Linking a radio button to a text field in a pdf form

    Forgive my ignorance but does anyone know how to link a radio button to a text field in an Acobat pdf form?
    I have a series of 4 radio buttons. If you click on one of them I would like to activate a text field which you then have to fill in. In addition it would be good to have it so that if you don't click on the radio button you're not able to fill in the associated text box.
    I am a designer not a programmer so I don't know much about javascript. Can anyone help?
    Many thanks

    You might want to look at Hiding and Showing Form Fields by Thom Parker. You might also want to clear the text field when the radio button changes.

  • How to make some fields mandatory for a custom screen we have added

    Hi All,
    Please let me know how can I make some fields mandatory through coding in PBO for only some fields of a screen.
    Say if I have 4 fields in my screen(module pool not selection screen) i want to make mandatory 2 fields based on some conditions how to do this? I tried using screen-group but this will make mandatory all the fields of that screen mandatory.
    I want only specific fields based on condition in run time.
    Regards
    Mahesh

    Hi Mahesh,
             Try this ..
      Assign the same group to those fields , say GRP
           in  PAI
             IF <CONDITION>
                Loop at screen.
                   if screen-group1 = 'GRP'.
                      screen-required = '1'.
                      modify screen.
                   endif.
                 endloop.
              ENDIF.

  • I want to make Requistioner field Mandatory in the Purchase requistion.

    Whenever i create purchase requistion i want to make  Requistioner field mandatory. I have checked the filed selection NBB and changed to mandatory and ME51 also  made mandatory after that also whenever i create with ME51 PR is going to next screen without asking for requistioner.
    Please let me know where actullay i have to make mandatory so that whenever i create it should ask the requistioner.
    Thanks.

    H,
    You also select the field Requisitioner as mandatory for below field selection>
    AKTH,ME51 & ME51N
    Because always the field selection: mandatoey , display & optional    will work in
    Setting Priority
        Hide 1
        Display 2
        Required entry 3
        Optional entry 4
    SAM
    Edited by: Saminathan Gopalan on Jun 22, 2010 3:25 PM

  • Need to make some fields mandatory in standard transaction XK01

    HI All,
    Is it possiable to make some fields in standard transaction like XK01 mandatory?
    or any work around ?
    thank in advance for your replies.
    Regads,
    Riyaz.

    Hi,
    From configuration(SPRO) u can easily make some fields mandatory in XK01. Otherwise create a transaction varition for XK01 using TC SHD0.
    Rewards points if helpful.
    Regards,
    Srinivas Ch

  • Make Assembly field mandatory in IW24

    Hi , This is Arvind NN ,
          In IW24 Create Malfunction.
    Under Field Assembly i like to make that Assembly field Mandatory for both N2 and N4.
    Thanks and Regards
    Arvind NN

    Hi Aravind,
    Please make the field mandatory in OMBW.
    Regards,
    Srinivas Muthyala

  • How can i make reference field mandatory in MIRO?

    Hi Experts,
    How can i make reference field mandatory in MIRO screen.
    Reference field is not available in field status group.
    I have checkedthe reference number in RE document types in OBA7 .
    But still without entering anything in reference field in MIRO,the document is getting save.
    Any other solution??
    Regards,
    Sumeya offrin

    Hi
    Strange....what you did should work.
    Was an accounting document created for this MIRO? Was it RE type?
    Ofer

  • Creating radio button and make it ennable

    Hello All ,
    Please help me out in creating radio button and make it ennable in web dynpro in java application .
    If Possible please send the sample code as well.
    Thanks
    jyothi.

    Hi Venkat,
    The default value needs to be set manually as John has suggested. To be more precise, if the context node is "RadioButtonValues" and the context attribute is 'RadioBtnVal', then in wdDoInit() method, include the following:
    wdContext.currentRadioButtonValuesElement.setRadioBtnVal("Male");
    Regards,
    Pavithra

  • Is it possible to make department field mandatory in T.code KS01

    Hi all,
    I need to make Department field mandatroy in Transaction 'KS01' Create cost center
    Is it possible to make department field mandatory.
    Pls suggest me if any possibilities.
    Thanks & Regards
    Bhaskar

    Hi,
    To add to above, Just check this point:
    SAP does not support implementation of new fields exits from ECC 6.0. It will still support the existing field exits in the system
    Also check if you can create the field exits from program RSMODPRF..
    Regards
    Shiva

Maybe you are looking for

  • Stream SD version of HD purchases on iPad/iPod

    My family owns an iPod Touch 5, iPad Mini, and an iPad 3.  We have a 12GB/month data-only wifi hotspot plan with Sprint.  My two daughters are often watching videos on the iDevices while we're on longer car trips or out running errands and such.  My

  • How to Clear Line in LS24

    Hi Gurus, When I got to LS23 and look stock per material i can see two entries,  TYP 001 for storage bin PRODUCTION and with stock of 1000 and TYP 910 for storage Bin GENERAL with 0 stock. I would like to clear the second line because it is zero stoc

  • NEW! 4.09 Soundstorm Audio driver package

    Okay, Guess that marriage is not the end of life so let me get again active in this forum So here is Markoul's debut in 2004... You did the Microsoft Windows Update to Audio driver for nf1/nf2 soundstorm driver version 4.09 and you ended up with a sc

  • Power consumption when PowerOFF: 24" iMac 2009

    I really wonder about my iMac 2009 Modell: when using sleep mode I got 11-12 watts power consumption. But when shutting down the iMac (Power Off in Apple Menu), the same iMac takes 10 watts Is this normal and how can I get sleep mode with far less or

  • Anonymous Block Troubles

    Hey everyone. I'm fairly new to the SQL world and this is my first time posting on any forum for help with coding. I have an assignment and I'm supposed to construct an anonymous block. I am using sqldeveloper and I am trying to run the following: --