Skip to Content
author's profile photo Former Member
Former Member

Radio Button Default in a Radio button Group

Is there a way to specify a particular radio button as the default among the two or more radio buttons which have been grouped together by 'Radio Button Group --> Define' on a Screen. At the moment it defaults to the first radio button on the screen.

An example would be a choice of three radio buttons 'YES', 'NO' and 'MAYBE'. At the moment it defaults to 'YES' because it is placed first on the screen. I would like it to default to 'MAYBE'.

I guess I can always setup the default in the PBO. But I'd like it do it on the screen. Any thoughts?

Many Thanks in Advance.

Sanjay

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jun 09, 2005 at 12:12 PM

    Hi,

    Use <b>default</b>.

    parameters : rb1 radiobutton group g1,

    rb2 radiobutton group g1 default 'X'.

    If your problem is solved,kindly reward points for useful answers and close the thread.

    Message was edited by: Jayanthi Jayaraman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 09, 2005 at 12:22 PM

    Hi,

    Try this one

    SELECTION-SCREEN BEGIN OF BLOCK b_layout WITH FRAME TITLE text-b06.

    PARAMETERS: rb_hier RADIOBUTTON GROUP 003,

    rb_sku RADIOBUTTON GROUP 003,

    rb_plant RADIOBUTTON GROUP 003,

    rb_norej RADIOBUTTON GROUP 003,

    rb_rej RADIOBUTTON GROUP 003.

    SELECTION-SCREEN END OF BLOCK b_layout.

    In there are three radio buttons u can select according to ur choise but default will be first, if u want to make any other things default

    rb_sku RADIOBUTTON GROUP 003 default 'X'.

    Also if u want to do any manupulation on the radio button u can select as

    If rb_sku = 'X'.

    Perform...

    Endif.

    Thanks & Regards,

    Jduith.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2005 at 01:05 PM

    Thanks to all who replied.

    The PBO option suggested by Rich looks like the only option at the moment but I was thinking of finding a way of specifying it in the Element Attributes via the Element List(F7) etc. in the screen painter.

    Thanks once again.

    Sanjay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.