facebook

Obtaining Radio-Group Status for If Statements… CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #336296 Reply

    mreade
    Member

    Support,

    This is first time i have used the new multiPage and tabBar in a new app that I am creating. Here is a summary of the layout.

    * App has one form called: frmMain
    * I’ve placed a Multipage and TabBar on frmMain
    * I’ve created 4 pages on the TabBar (Home, Input, Formulas, Settings)

    On the Input multipage, I’ve added a radio-group1 which has two radio buttons named (ON and OFF)

    The ON value is set to 1, and the OFF value is set to 0

    At the bottom of the Input multiplage, I’ve added a “CALC” button. When the user selects this button, this is what I would like to accomplish:

    If the ON radio button is selected, then perform one set of calculations, or if the OFF radio button is selected, perform a different set of calculations.

    My question is: What is the code snippet to recall the status of the radio-group1 buttons?

    I hope I’ve provided enough info.

    Thanks in advance.

    mreade

    #336423 Reply

    @mreade,

    As you already have posted a code that works with this matter, I guess you already figured it out:
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=5138

    Just note my reply in that thread: the code have an extra space before “:checked”

    Corrected snippet code:

    $('input[name="radio-group1"]:checked').val()
    #336485 Reply

    mreade
    Member

    Support,

    Yes, I was able to get this working.

    Many thanks,

    mreade

    #336532 Reply

    mreade
    Member

    Support

    This can be marked as closed as everything is working fine.

    mreade

    #336548 Reply

    @mreade,

    Thanks for your follow up. Thread closed.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Obtaining Radio-Group Status for If Statements… CLOSED

You must be logged in to post in the forum log in