Newbie radio button question?

Hi. I am trying to create a time field when a user clicks a certain radio button. More like a time stamp when the user clicked the radio button. There are three buttons labeled within a group: 'RadioButtonList' which have the values 1,2,3. When someone clicks the 1 button, the time field would get updated with the time the user clicked the button. Any ideas?

In the "Window" menu, next to "Tools", select "Script Editor".
You will see a script window open. Select the radio button first, in "Script Editor" make sure
Language: "Java Script" is selected,
Run At: "Client"
Show: select "Change"
Then paste the code in the window.
You have to put the right names of the fields for this to work. You can get the full name of the fields by selecting the field, you will then see in the "Script Editor" window the full name of the field.
If you created a field named "timeStamp", you would see soemthing like this in the Script Editor window:
----- form1.#subform[0].timeStamp::change - (JavaScript, client) ----------------------------------
The full name of this field would be "form1.#subform[0].timeStamp"
Following this example, the code to paste into the radio button "change" event would be:
var now = new Date();
form1.#subform[0].timeStamp.rawValue = now.toString();

Similar Messages

  • Radio button question

    I want achieve like this in UI
    Showing two radio button and grouping then is simple. But what I need is between those radiobuttons (in page direction), I would like to have some other components which makes sense for each selected radio.
    Radio1
           SomeComponents
    Radio2
           SomeComponents

    The Tomahawk library version of selectOneRadio supports this with layout="spread". Then use Tomahawk radio components anywhere within the form.

  • Radio buttons questions

    hi gurus. can someone help on radio buttons?? does abap have on action performed events, like in java??? i only ask this because i have a screen with 2 radio buttons and i want to deactivate some fields when one radio its choosed and vice versa ...
    Thk, Regards

    Hi,
    you can use AT SELECTION-SCREEN OUTPUT event.
    Example:
    PARAMETERS: CLIENTE RADIOBUTTON GROUP RADI DEFAULT 'X',
                            FICHEIRO RADIOBUTTON GROUP RADI.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF CLIENTE = 'X'.
            SCREEN-INPUT = 0.
        ELSE.
            SCREEN-INPUT = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    SCREEN is a system  table that contain information of all the fields in the screen.
    it as some atributes like:
    Field          Length Type Meaning
    SCREEN-NAME       30   C Field name
    SCREEN-GROUP1      3   C Analysis of
    Modif group 1
    SCREEN-GROUP2      3   C Analysis of
    Modif group 2
    SCREEN-GROUP3      3   C Analysis of
    Modif group 3
    SCREEN-GROUP4      3   C Analysis of
    Modif group 4
    SCREEN-REQUIRED    1   C Required field
    SCREEN-INPUT       1   C Field ready for input
    SCREEN-OUTPUT      1   C Displayed field
    SCREEN-INTENSIFIED 1   C Field intensified
    SCREEN-INVISIBLE   1   C Field invisible
    SCREEN-LENGTH      1   X Field length
    SCREEN-ACTIVE      1   C Field active
    Valuea '1' or '0' means true/false
    regards,
    Message was edited by:
            Pedro Rosa

  • Dynamic radio button fields do not display again after form is saved

    Hello,
    I have a group of radio button questions within a dynamic form that display additional questions based on the answer.
    So for the question "Is there a basement?" if the user indicates yes, there is a basement, additional questions are displayed to gather more information about the basement. If the user indicates no, then those questions do not appear.
    Everything works beautifully in the form. However, when the form is saved and then re-opened, the additional questions do not appear in the form. So the structure goes from this:
    To this:
    The users must toggle the radio buttons to make those questions reappear...and when they do reappear, they have maintained whatever answer the user indicated before saving.
    I'm not sure why this is happening...does anyone have any advice?
    Thank you,
    Theresa

    Hi,
    Thanks so much for your response! I am using Designer 8.2.1.
    I just played around with more of my form...this seems to happen whenever I am working with a hidden subform that is displayed when the user clicks a button (or selects the appropriate radio button). I have a couple of other places within my form where this occurs.
    Here is an example of the script on one of those buttons:
    var intNewIndex = form1.construction_type.const_type_repeat.instanceManager.count-1; 
    form1.construction_type.resolveNode("const_type_repeat[" + intNewIndex + "]").percentage.presence="visible";
    const_type_repeat.instanceManager.addInstance(true);
    The script on the radio button is:
    if (basementyes.rawValue == 4){secondwd.sump.presence ="visible"
      secondwd.sumpradio.sumpyes.presence ="visible"
      secondwd.sumpradio.sumpno.presence ="visible"
    else {secondwd.sump.presence = "hidden"
      secondwd.sumpradio.sumpyes.presence = "hidden"
      secondwd.sumpradio.sumpno.presence ="hidden"
    I am pretty new at this so it might be something obvious...thanks again for your help!

  • My form has a list of yes or no questions.  I want to use either cheboxes or radio buttons.  I can't make it work.  When I check yes for one question, it marks all yes answers for all other questions.  If I mark some radio buttons to answer, it unmarks la

    My form has a list of yes or no questions.  I want to use either cheboxes or radio buttons.  Unfortunatly I can't make it work.  When I check yes for one question, it marks all yes answers for all other questions.  If I mark some radio buttons to answer, it unmarks later.  Need immediate help!!!

    Is it that you are using a PDF-based form? Did you copy and paste the Yes/No fields all the way down your form? If so, then all of the yes/no boxes are copies of each other and have the same name and properties in the PDF.
    For example, if you had:
         Question 1 and Question 1 Yes/No checkboxes
         Question 2 and Question 1 Yes/No checkboxes
         Question 3 and Question 1 Yes/No checkboxes
         Question 4 and Question 1 Yes/No checkboxes
    Then whatever answer you selected in Question 1 would populate down through the rest of the form.
    Changing the Yes/No field properties in questions two through four would eliminate the problem.
    I hope that helps,
    Brian

  • How do I include the radio-button items on a second column as possible answers to the question?

    Using Adobe Acrobat Pro X, we created a fillable PDF from an existing PDF.
    One question can be answered by choosing one of four choices (radio buttons). The answers are laid out in a 2-by-2 arrangement.
    When Acrobat Pro converted the PDF into fillable format, it thought that the radio-button answers on the second column are not part of the question.
    How can I manually override Acrobat and make choices 3 and 4 part of the question.
    Please click attached screenshot for better zoom.

    George,
    i am the OP. I mistyped my email address and cannot log in to my original account.
    Thanks for your reply.
    How do I give each radio button the same name but unique button values?
    I right-clicked the first radio button, chose Properties (Ctrl+I).
    I copied the name: "What is your personal net worth in Canadian dollars including spousecommon law partner if applicable".
    I clicked Close.
    I then went into the Properties dialog window of the third radio button, which is one of the ungrouped choices. I pasted the name [What is your personal net worth in Canadian dollars including spousecommon law partner if applicable]. I then clicked Close.
    I get an error message pop up:
    A field of a different type already uses this name. Please choose a new name for the field, or change the field type to match the existing field with this name.
    What must I do now?
    Thanks.

  • Editing radio button / check box in MC question in DesignTemplates?

    Anyone an idea, how can I change these radio button / check box in MC question in a DesignTemplates?

    Hi there
    I don't believe this aspect may be controlled by a Design Template. Probably because this is an aspect that may vary from question to question. It deals with question functionality as opposed to simple visual elements.
    If you feel strongly this should be considered as part of a Design Template function, I might suggest you put it forward to Adobe.
    Click here to visit the Wish Form/Bug Reporting Form
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Exported To FLash 8 - MC question Radio Button Size?

    I have a quiz that uses MC and T or F questions - I am
    exporting it to flash to integrate it with some other content.
    I have everything working at this point, except I need to
    increase the font size of the question Radio buttons and everything
    i have tried so far hasn't worked. I am guessing it is somewhere in
    the captivate quiz class files but i havent been able to track it
    down.

    Thanks for the response.
    After i posted I kept digging and found where the code is
    that sets the font for the Radio buttons in the quizzes when you do
    an export to flash. What I found out is listed below in case anyone
    else ever needs the information- hopefully it will save someone
    else some time.
    The ".as" file is --
    C:\Documents and Settings\YOUR NAME HERE\Local
    Settings\Application Data\Macromedia\Flash
    8\en\Configuration\Classes\AdobeCaptivate\quiz\CpMultipleChoice.as
    Strating at line 106 there is the following code
    p._font.name = "Arial";
    p._font.size = 12;
    p._name = "" + numAnswers;
    I was then able to make the font size larger to match the
    other text on the screen (i do have to say it's rather annoying
    that those attributes don't get exported from the captivate file,
    because i set the font properties before exporting - but i guess
    there is probably a reason for that)

  • Adobe Captivate - Multiple Choice Quiz Question - Radio Button and Text Alignment

    I have created a quiz with multiple choice questions.
    No matter what I do I cannot align the radio button and the text for the choices (see below).
    I would like to align the center of the radio button with the center of the letter A) and B).
    I have tried every option that I can think of in the Properties options.
    Please let me know if anyone has a solution for this.
    Thank you

    Thanks for the reply.
    Previously I tried several different combinations of fonts and font sizes, but didn't see any change.
    Does anyone else know of anything else that could effect this situation?

  • HT201210 After asking a question last week, I now get scores of emails every day. I turned off the radio buttons on " notify me by email " respectfully please help

    After asking a question to the community last week, It now get scores of emails now with questions . I had marked the radio buttons to be notified but
    Later found them, and un clicked them all. Also I might have been hacked, because I was charged yesterday with an App, that I did not order!!!
    I only know that, because I get an instant message from my bank by phone, when I spend any money. I am worried.
    Bambi

    Hello Dorothea5916,
    It sounds like you changed your forum account preferences and now they have changed back, and you have an unauthorized purchase on your iTunes Store account and have concerns about your account security. I recommend first changing your Apple ID password with this article:
    Apple ID: Changing your password
    http://support.apple.com/kb/ht5624
    Go to My Apple ID (appleid.apple.com).
    Click “Manage your Apple ID” and sign in.
    If you have two-step verification turned on, you'll be asked to send a verification code to the trusted device associated with your Apple ID. If you're unable to receive messages at your trusted device, follow the guidelines for what to do if you can't sign in with two-step verification.
    Click "Password and Security".
    In the "Choose a new password" section, click Change Password.
    Enter your old password, then enter a new password and confirm the new password. Click Save when done.
    The next time you use an Apple feature or service that uses Apple ID, you'll be asked to sign in with your new Apple ID password
    You should also report an issue with the purchase to the iTunes Store support directly with the following article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/ht1933
    To enhance security for your account you may want to look into Two-Step Verification to help prevent unauthorized access to your account:
    Apple ID: Frequently asked questions about two-step verification for Apple ID
    http://support.apple.com/kb/ht5570
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • SE54 - Recording Routine Radio Button - Transport Question

    Greetings!
    We have an issue in our development system where in T-Code SE54 the Recording Routine radio button selection was changed for a particular table so it's affecting one of our custom transactions.
    We are looking to change the setting but there is some uncertainty around if anything else needs to be done. Is it just a change of the radio button setting and then transporting to our QA environment or would there be any additional steps involved (activation, etc)?
    I appreciate it!
    Wendy

    NM, don't need.

  • Question on radio button

    I have one "selectOneRadio" with two "selectItem" and an associated "ValueChangeEvent". This event is getting fired for only one radio button. How do I get selected button value?

    Frank, I do have the reference. When I click the second radio button, it triggers the event. For the first one, it doesn't.
    public void onSelectOpt1(ValueChangeEvent evt){
    String nVal = (String)evt.getNewValue();
    In the selectOneRadio, I have like this:
    valueChangeListener="#{backingBeanScope.backing_getOrdTable.onSelectOpt1}"

  • Form/Radio Button/Email Question

    How can I fix the form on http://www.cec-waterjet.com/Contact/index.html so that it sends an email to the contact whose radio button is selected?

    The script you have now should work, it's just not very secure. I meant find a different script where, instead of entering the actual email address in the recipient field, you entered a key or index that points to the address that's been entered somewhere in the script or configuration file, so the email address isn't anywhere in the HTML. I've got an (old-ish) PHP script that works that way here:
    http://www.mindpalette.com/scripts/index.php#NMAnchor
    ...but if you need another CGI script like you've already got, I don't have any specific recommendations, sorry. It was just a suggestion :-)
    I removed your code from your message #2 to try to prevent that from getting spam harvested.

  • Radio button to text field

    Hi there,
    I have a (probably) easy question to answer for a programming newbie.
    I have a radio button - it says are you left or right handed - so two options: left and right - I have also changed their values from 0 and 1 to left and right. I've called the object name: 'handed' and set it to global data
    On another part of the form I would like an uneditable text field that says: this person is ... handed
    ...so in other words there's a gap where I want the text to say 'left' or 'right' - I've also given this field the name 'handed'.
    It almost works, but instead of showing the name I get the value (ie. 0 or 1) - can anyone help me to change the value into the text?
    Many thanks,
    Sunil
    I'm using ES4 by the way.

    Hi again,
    well, I don't know what I did wrong before, but this time round I changed the values from 0 and 1 to right and left and lo and behold it worked - so didn't need to resort to coding for this one.
    However, before doing that I tried what you said above but couldn't get it to work - am I missing syntax here - not sure. Also, wasn't sure when the calculate event would happen. Ie. is it instantaneous with when the user clicks on the radio button to make the selection, or does the event need to be triggered somehow - eg. using a button on click etc.?
    Thanks for your help though - much appreciated.
    Sunil

  • Deselect radio buttons

    Is there a way to deselect all the radio buttons in a group?
    what I'm specifically trying to do is, once the user has selected
    the radio button and clicked my button to proceed to the next
    question in my quiz, it will load a new question and new radio
    button labels/values. that part works, but the radio button
    previously selected is still selected. I have tried:
    radioGroup.selection = null:
    radio_btn0.selected = false; (and repeat for the other 3)
    and the same as above in a for loop.
    None of this seems to work. Is this possible, or will one
    always be selected once the user interacts with the radio group the
    first time?

    I put radio buttons on the stage drag-and-drop style, rather
    than have them generated at runtime, and no I don't have any code
    to remove previous instances. I'll try adding code to add and
    remove those as the script runs and see what I come up with. I'm
    still an incredible newbie, so even though I know what I want to
    happen it takes me a while to figure out how to code it.

Maybe you are looking for

  • Help with Auto calculations

    I have an existing pdf that i am trying to edit and make it more functional...i.e. fillable info with auto calculations of cost based on a given number (times a specific cost) Example on the form.... Car Registrations (per car) _____ X $25 _________

  • Output query using list with 4 columns

    Hi Folks, Is this possible so you end up with: a          e          h a          e          h a          e          h    b          f           h b          f          h    b          f          i c          f          etc c          f c          f

  • [WebLogic Sybase Type 4 JDBC Drivers] set ANSINULL off

    Hi, I am having some issues with the Weblogic JDBC Driver for sybase and the ANSINULL functionality. It appears that the stored procedures from a third party whose system we are trying to integrate with do ot function properly due to the fact that We

  • Embeded Flash file .. need to center

    After creating a dynamic site via Flash, I'm experiencing issues with centering it on the html page. I've tried all of the regular fixes of <align = center>...but it's not reading it. Someone told me that it takes a bunch of code to do..but I don't r

  • Enabling Suite Color Management on Bridge

    When I go into Edit >>>Creative Suite Color Settings   I receive an error window informing me that it hasn't been enabled and at least one qualifying product needs to be launched at least once to enable Suite Color Management. I have opened Illustrat