Add a new check box when a button is clicked?

Hi ,
I was trying to add a check box dynamically when a button is pressed.
The check box contains title and a textbox for the user to enter data.
For example , when the user hits addnew button , a new check box (title-name)
with a textbox for entering name should appear on the form.
Please give me any examples.
Please help
thanks

here i m posting a similar code. just have a look at it and try it by yourself.
str1="<select id=select"+ac+" name=select"+ac+">";
                    for(count1=0;count1<document.form1.select4.length;count1++){
                         str1 = str1 + "<option value='"+document.form1.select4.options[count1].value+"'>"+ document.form1.select4.options[count1].value  + "</option>"
c[3].innerHTML= str1 + "</select>"     
innerHTMLis userful for your requirement. and check somemore exaples like adding a row dynamically to a html page.
Diablo

Similar Messages

  • Add a new check box when a button is pressed??

    I was trying to add a check box dynamically when a button is pressed.
    The check box contains title and a textbox for the user to enter data.
    For example , when the user hits addnew button , a new check box (title-name)
    with a textbox for entering name should appear on the form.
    Please help
    thanks

    ganeshpuppala wrote:
    Hi ,
    Thanks for the reply , I want to just do the task in java script.
    Can you explain with an example.
    thanksSince you are on a Java forum, I can only assume you want to be talked out of using JavaScript. And since you didn't indicate your choice of GUI toolkit, the default assumption is that you want to use Swing. Congratulations! Start here:
    [http://java.sun.com/docs/books/tutorial/]

  • Problem getting check boxes and radio button to click with applescript

    This is my script, it runs through without error, i can see the check box lightly flash like its being focused in on, but it wont actually check mark the box. it does this with all my check boxes and radio buttons.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12
    key code 125
    key code 125
    key code 124
    key code 125
    key code 125
    key code 36
    delay 1
    end tell
    tell window "Variable Links"
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell

    Hi craneium and welcome
    For me this script fails, going through it step by step it seems confused, as I have highlighted out in the below code.
    where is the window "Variable Links, may be I can help.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12 --opens spotlight search in help
    key code 125 -- highlights indesign help
    key code 125 -- highlights welcome screen
    key code 124 -- goes to apple
    key code 125 -- goes to about this computer
    key code 125 -- highlights software update
    key code 36 -- starts software update
    delay 1 -- ?
    end tell
    tell window "Variable Links" -- error cant get window variable links
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell
    Budgie

  • Create pop up box when URL button is clicked?

    I would like to have a pop up box appear when a URL button is clicked. The URL button links to a Web Intelligence report that takes more than a minute to run. The pop up box will tell the user that the report will take more than one minute to run, and will give the user the option of running the report or cancelling the request. This functionality doesn't seem to exist, but am I missing something?

    Thomas,
    You may wish to refer the link below...
    http://xcelsiusandme.blogspot.com/2009/07/xm-sample-2-pop-up-with-url-button.html
    -Anil

  • HT201272 all of music downloads in my library show a exclamation point prior to the check box, when i try to click the song, it says unable to locate even though all the preferences are saying it's there. where is my music? please help

    I was trying to sync my ipod and for whatever reason my iTunes wasn't recognizing my ipod anymore and asked if I wanted to erase it and basically start over.  So I said yes, thinking it would then put my music library back on my ipod, but instead now it shows all my music but it won't play or sync.  When I try to play any song, it says it can't be located and asks if I would like to locate it, but I still can't find it!  I've had to go into the iTunes store and redownload songs and that works.  But I would really like to just locate my library wherever it is in my computer.  Help!

    I'm in the same boat...so far no one has helped here

  • Adding a New Check Box field in Business Partner

    Experts,
    I know there are hundreds of thread on this topic. But i'm not clear with that.
    I have to add a new Check box in the Business Partner Screen. We are on SRM 5.0.
    The check box should be placed in "Business Partner Status" Frame of "Company Data" Tab.
    How to go about this, Kindly please expalin the steps.
    More over the Check box will be used for further processing in other tabs.
    Pl throw some light on that aspect also.
    Rgds
    Immediate Rewards for Sure
    SV

    Hi
    Try this link, already copied by ..
    Re: vendor master extensions by customer
    It is not possible to display F4 help for customer fields in BBPMAININT Transaction.
    Supporting link ->
    F4 for customer table fields
    Other useful links ->
    Note 675800 - Business partner enhancement SRM on maintenance screen
    Re: How I can save customer fields in Vendor master?
    Re: Adding new fields in VEndor master data in EBP
    Hope this will help.
    Regards
    - Atul

  • Adding a text box dynamically when a button is clicked in normal form

    Hi all ,
    i have a form where a Add button , creates a text box when ever it is clicked .
    can you please tell me how to achieve that functionality ..
    my form is normal form .... it is not a tabular form .
    Regards ,
    Nandini .

    How about
    <script type="text/javascript">
    function getElementsByClass( searchClass, domNode, tagName)
         if (domNode == null) {
         domNode = document;
         if (tagName == null) {
         tagName = '*';
         var el = new Array();
         var tags = domNode.getElementsByTagName(tagName);
         var tcl = " "+searchClass+" ";
         for(i=0,j=0; i<tags.length; i++) {
              var test = " " + tags.className + " ";
              if (test.indexOf(tcl) != -1)
                   el[j++] = tags[i];
                   if (tags[i].innerHTML.indexOf('DoFilters') > 0 )
                   tags[i].innerHTML = tags[i].innerHTML.substring(0, tags[i].innerHTML.length - 7 )
                                       + " onfocus=javascript:alert('Put your javascript here'); >Go</a>"
                   alert (tags[i].innerHTML);
         return el;
    </script>
    <script type="text/javascript">
         var tabs = getElementsByClass('minibuttonOn');
    </script>
    regards
    John
    http://www.obiee101.blogspot.com/

  • How to put Check Boxes and Radio button in Smartforms

    Hi all,
    How to put check Box and radio button in Smartforms ............ from web properties there is an option to use. But How to use.     
    regards,
    Mohsin

    u can declare the checkboxes or radiobuttons whatever in driver program and pass the same to ur form...

  • How can I add the progress loading box when I load a module?

    Hi everyone, how can I add the progress loading box when I
    load a
    module? Is it an automated thing with flex or must I code it?
    Thanks.
    :)

    try using javascript onclick attribute:
    onclick="document.form.name.disabled=false"
    m

  • How to create a new check box using form personalization.

    Hi Frs,
    I have a requirement to create a new check box in AP form using form personalization.
    Pls help me in achieving this.
    Note: we have to use only form personalization not custom.pll.
    Thanks
    Rajesh

    Pl see ML Doc 420518.1(Limitations of Forms Personalization) for a list of things you cannot do with personalization - among them is creating new form objects such as checkboxes.
    HTH
    Srini

  • Interactive form, selection of check boxes, only want option to click one

    I have an interactive form set up in Indesign CS6 and have muliple check boxes, I have them set to only appear when clicked, however our client would like it so that when one is clicked it won't let you click the others, so bascially is there are 10 check boxes, only allow you to click 1.
    Kind regards
    Mark

    I've never used ID's new form features, so  I don't know if yo can set that property for a checkbox directly in ID, but you should be able to to do this in Acrobat. As I recall, all the check boxes need to have the same control name.
    That said, the select-one-only behavior is usually associated with Radio Buttons, not checkboxes.

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Display success message in same page when submit button is clicked

    I have a jsp page, where i use a form to submit data into my database.when submit button is clicked, i am able to display "Data entered Successfully" in a different page. But i want to display the message in the same jsp page.
    what do i do?
    PS :- i have tried a javascript message box, but that is not working properly. I need this solved urgently.
    Thanks

    Hi Deeptha,
    What is APEX version your using and is it your select list with submit option ?
    Regards,
    Ajay Periwal

  • Cant sync music from iphone 5... When sync button is clicked starting sync appears and dissapears and nothing happens i cannot find a solution for this... Someone help me please

    I Cant sync please help me... Im using iphone 5 ios 7.1... when sync button is clicked starting sync comes and nothing happens and no music on my phone... Im trying to sync my playlist in itunes... I have itunes 11.1.3.8 64-bit Windows 8

    My apologies...the version is 11.1.4.62 not as stated aboive in my problem description.  I'm trying again and it just finished syncing fine and my iPhone 5 is still connected to iTuns physcially with USB lightening cable and is displaying the iPhone icon top right.  I clicked on it and iTunes is now "hung' or  locked up.  Shows to be an active running application but can't get back to it so willl have to kill with task manager.  There is some kind of problem going on with the latest version of iTunes and Wndows 7 and 8.1 or something.  My iPhone 5 now has a new feature that it is now asking me if I "Trust" this computer.  iTunes just came "unhung" after several minutes while I was typing this. Now I am going to start the backup to this computer HP Winsows 8.1 and iTune 11.1.4.62 and see what happens.  Says it is Backing up Jerrys iPhone but the Barber Pole progress bar is not turning an iTunes is hung again and I cant get back to it from this page I am typing on.  Maybe it will eventually release as it did a moment ago. 

  • Is it possible to fire an event when radio buttons are clicked in a report?

    Hi All,
    I have got a requirement. In the selection screen i have certain input fields and three radio buttons. When radio buttons are clicked i have to grey out certain input fields. Is it possible to fire an event when i write program through se38??
    Thanks
    Rakesh

    Hi Rakesh,
    Check this code.
    SELECTION-SCREEN BEGIN OF BLOCK FINPUT WITH FRAME TITLE TEXT-001.
    PARAMETERS  : FILENAME(132) TYPE C LOWER CASE  NO-DISPLAY,
                  FDLOAD RADIOBUTTON GROUP RAD1
                  USER-COMMAND R1 ,
                  FUPLOAD RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN END OF BLOCK FINPUT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FUNAME(132) TYPE C LOWER CASE MODIF ID AA.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTION USER-COMMAND
                     BTNACT MODIF ID AA VISIBLE LENGTH 8 .
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCEL USER-COMMAND
                     BTNCAN MODIF ID AA VISIBLE LENGTH 8  .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FDNAME(132) TYPE C LOWER CASE MODIF ID BB.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTIONS USER-COMMAND
                     BTNACT1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCELS USER-COMMAND
                     BTNCAN1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA : ACTNAME(8) TYPE C,SCRGRUP(2) TYPE C.
    INITIALIZATION.
    ACTIONS = 'Download'.
    CANCEL = 'Cancel'.
    ACTION = 'Upload'.
    CANCELS = 'Cancel'.
    ACTNAME = 'Download'.
    SCRGRUP = 'AA'.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF FUPLOAD = 'X'.
         MOVE 'Upload' TO ACTION.
         MOVE 'Upload' TO ACTNAME.
    ELSEIF FDLOAD = 'X'.
         MOVE 'Download' TO ACTION.
         MOVE 'Download' TO ACTNAME.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-UCOMM = 'R1'.
        IF ACTION = 'Download'.
          SCRGRUP = 'AA'.
         MESSAGE S007(ZMESSAGE).
        ELSEIF ACTION = 'Upload'.
          SCRGRUP = 'BB'.
         MESSAGE S008(ZMESSAGE).
       ENDIF.
    ELSEIF SY-UCOMM = 'BTNCAN' OR SY-UCOMM = 'BTNCAN1'.
      LEAVE PROGRAM.
    ENDIF.
    *AT USER-COMMAND.
    CASE SY-UCOMM.
       WHEN 'ACTIONS'.
         LOOP AT SCREEN.
           IF SCREEN-NAME = 'FUNAME'.
           ENDIF.
         ENDLOOP.
    ENDCASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FUNAME.
      PERFORM call_filedialog CHANGING FUNAME.
    PERFORM call_filedialog CHANGING FUNAME.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Download' .
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Upload'.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    FORM call_filedialog CHANGING fname.
      DATA: li_filetable TYPE STANDARD TABLE OF file_table,
        lv_return TYPE i,
        lw_filetable TYPE file_table.
      CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
        TABLES
          file_table = li_filetable
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE li_filetable INDEX 1 INTO lw_filetable.
      fname = lw_filetable-filename.
    ENDFORM.                    "call_filedialog
    Reward Points, if useful.
    Regards,
    Manoj Kumar

Maybe you are looking for