Ticking a checkbox puts text into a textbox

Hi guys,
I am struggling to find an example of code for the really simply scenario of, a checkbox (Checkbox1) is ticked and pre-fills a textbox (Textbox1) with "Blah blah blah".
When the checkbox is unticked, the text vanishes.
Can anyone help me?

Thanks for answering this question as i was looking for something similar. Could this be modified to fill multiple boxes? The following was tried without success.  Without the second line added it works perfect. 
if (event.target.value!="Off") {  //If checkbox is ticked
this.getField("Textbox1").value = "Blah blah blah";
this.getField("Textbox2").value = "BooYaa";
else
this.getField("Textbox1").value = "";
this.getField("Textbox2").value = "";
  //Clear the text field if checkbox is not ticked

Similar Messages

  • How do I put text into an Edge File that clients can edit easily afterwards

    Hi
    Can anyone explain how I can put text into an edge file (styled with google fonts) and make it so that clients can access the text and update the text as they require?
    Previous suggestion was dynamically loading a .txt file - any instructions would be most appreciated.
    Thanks.

    Hi Resdesign!
    Your code is very useful to learn how to use Json in Adobe Edge Animate!
    But I have a question: why you use ( i ) as argument of the function UpdateInfo and when you recall it you use ( index )?
    $.getJSON('slides.json', function(data){
              //for(var i=0; i<data.length; i++){
    function updateInfo(i){
                        sym.$("photo").css({"background-image": "url('"+data[i].image+"')"});
                        sym.$("pillar").html(data[i].pillar);
                        sym.$("what").html(data[i].what);
                        // position
              index = -1;
              sym.$("btn").click(function(){
              index++;
                        if (index>=5){
                                  index = 0;
              updateInfo(index);
    Many thanks for your attention!
    Davide

  • Cant insert Text into a TextBox. (Confusing Problem, CS6)

    Hello forum members!
    Just got the trial today and I am trying to insert text into a document. I press "T" and drag a box for a textbox. I then double-click inside that box to type something, and whatever I type absolutely NOTHING appears. It just blinks and nothing is actually typed inside the box.
    This is really frustrating. I have only just started and have one document that is fresh, so my question is what is the problem here?
    Thanks in advance,
    Shane Stocks

    Could you elaborate on that a little? I have taken a screenshot of my screen to show you how everything is. I have not touched any settings and have literally downloaded the trial about an hour ago.
    I do this. Click on the T, drag a box, then start typing. When I type, the icon does not move, and for some reason it seems what I am typing renames the layer tab. Please view the image, everything is there.
    Thanks again,
    P.S. The text-box does dissapear when the icon changes into a text icon, and the image above is me typing random things. Nothing appears.

  • Photographers!  App to put text into photos?

    I have some pics that I want to put titles into/onto.
    I am putting together a poster.  The top of the poster has a picture.  I want to put some text on top of/into the pic.
    What is a SIMPLE and EASY TO USE app where I can open the pic and type in the text and do some formatting?
    I do not want a 'template' app.  The one's in pages don't work for this project.
    Oh, I want it to be able to use the fonts I have.  A program that gives me limited fonts is NOT going to work.
    MAC OSX 10.6.8

    The free Apple app Preview that came with your computer can add text and edit/color correct images. Open the image in Preview and go to Help in the menu, Preview Help.
    Click on Annotate images and PDF documents and choose add text or a text bubble, follow the directions. To see how to edit images click on Edit Images.
    If you have iPhoto installed (you need to buy it from the App Store) you can edit/color correct in that app too. To add text to a photo in iPhoto you need to download this free plug-in for iPhoto to be able to add text to an image.
    BoarderFX
    http://www.iborderfx.com/iborderfx/

  • When printing to pdf i copy and try to paste text into the textbox and it freezes up. What can i do to fix this?

    I have tried to look at reasons as to why this happens but i cannot find anything. If i type it in manually it works perfectly fine. The copying and pasting of text into the name of the file freezes and crashes the window i am in

    Hey jb42312436,
    Please let me know what type of file are you trying to print to PDF.
    Is Adobe Acrobat installed on your system? What version?
    Try doing the same with some other file and check if the same thing happens.
    Let me know.
    Regards,
    Anubha

  • How do you put text into a photo book?

    I am new to Photoshop Elements, using Elements 11, and my first project is to make a photo book for a recent trip.  I have figured out importing the pictures and titles.  I want to include a 3000 word story on 3 or 4 pages.  I have spent hours trying to do this.  I thought I would be able to easily copy and paste from Word but that isn't working for me.  I have retyping the whole thing in "Your Text Here".  I can't seem to make it work.  Pane sizing is an issue.  Editing after I have typed several paragraphs.  I am about to give up.  I can't locate any tutorials etc on how to do this.  I bought Elements 11 for Dummys and they might as well have skipped photo books.  It was useless.  Can someone give me some guidance please?

    Try creating a new page template in expert mode.
    File >> New >> Blank File
    Select your page size height and width and background color and use 300 ppi for printing.
    Then select the T tool, click top left, and copy and paste your text.
    Save as jpeg and add it to your book as an image and use the bounding box to scale/re-size.
    Note you may have to click inside the text area and add the carriage return as it’s not easy to justify text in elements.
    I would suggest you first save as PSD that will preserve the text layer as a separate layer. You can then re-open the PSD file at any time e.g. if you decide to edit any of the text. Treat it as your master file and use it to save a fresh jpeg whenever needed.

  • I use Go Daddy Web Mail and FireFox may be preventing me from being able to put text into the subject line when composing an email.

    As the question / statement says, When in Firefox, once I've started my webmail application through Go Daddy, I can compose an entire email filling out all the required info. But, when I put the mouse over the 'Subject Line' and click, no cursor appears.
    Having walked through this with Go Daddy, they are convinced that it's FireFox because we opened up their webmail with 2 other browsers and both allowed me to plug in a subject line.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • How can I put text into a cell with a formula?

    I'm trying to sort a budget in Numbers 3.1. I have a sum of column of cells that I'm adding up. The cell that has a total number looks like this: =SUM(F). I want to have that sum have a $ sign in front of it. I've ready everywhere that I could do ="$" SUM(7), but that doesn't work in 3.0, only in Numbers 09 I guess. Is there a new solution for 3.1?

    Tyna,
    Just Format the cell as Currency.
    Jerry

  • How to put data into textbox using JSP

    How can I put data into a textbox using JSP?
    This code prints to a html page but I want it inside an text area:
    // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
                    out.print("DIR\t");
                else if(type == FtpListResult.FILE)
                    out.print("FILE\t");
                else if(type == FtpListResult.LINK)
                    out.print("LINK\t");
                else if(type == FtpListResult.OTHERS)
                    out.print("OTHER\t");
                out.print(ftplrs.getName() +"<br>");
            }I have tried with the code below:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    %>
                    <%= "DIR\t" %>
    <%            else if(type == FtpListResult.FILE) %>
                    <%= "FILE\t" %>
    <%            else if(type == FtpListResult.LINK)  %>
                    <%= "LINK\t" %>
    <%            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>
    <%            String temp = ftplrs.getName() +"<br>");
                  <%= temp > <br>
    %>
    </textarea>I get the following error:
    Location: /myJSPs/jsp/grid-portal-project/processviewfiles_dir.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated.
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:151: 'else' without 'if'.
    else if(type == FtpListResult.FILE)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:165: 'else' without 'if'.
    else if(type == FtpListResult.LINK)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:179: 'else' without 'if'.
    else if(type == FtpListResult.OTHERS)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:193: ';' expected.
    String temp = ftplrs.getName() +"");
    ^
    4 errors, 1 warning
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Please help???

    Yes indeed this works:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    {%>
                    <%= "DIR\t" %>
    <%}            else if(type == FtpListResult.FILE)  {%>
                    <%= "FILE\t" %>
    <%}            else if(type == FtpListResult.LINK)  {%>
                    <%= "LINK\t" %>
    <%}            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>            
                  <%= ftplrs.getName() %>
    <%
    %>

  • HT2234 How do I save text into my iPod's Notes? I read the instructions and there is no Notes Folder in my iPod.

    I would like to put texts into my iPod's Notes. I received instructions from Apple, BUT I'm totally lost. There is no Notes Folder in my iPod. ANYONE PLEASE HELP!

    Hi Niel,
    Create a folder like if it were a playlist folder? I'm so lost...create a folder where?

  • Imputing text into "your site title" in webgallery and journal

    I cannot find the answer-aperture 1.5 I cannot put text into the box Your site title. I can type one word but as soon as I hit the spacebar I am out of the box and keystrokes become key commands in the program. I go back to try to delete and no go. I spoke to Apple people at Photo Expo and they have no idea. Their program acts like a normal word processor. One guy suggested that if I have any UNSANITY HACKS to disable them.( I do use windowshade and disabled it and no difference). G5 dual quad, OSX 10.4.8, raptor 75gb 10,000 rpm drive, Nvidia 6600 stock graphics card. Another person in my place has same computer and no problem with his type.
    Driving me crazy!!!
    Help anyone?
    Thank you, Jeff G

    HI, thank you so much for the reply.
    I did several things to try to remedy the problem. No go.
    Dumped prefs, repaired permissions, deleted all Unsanity programs, disabled other little screen apps.
    Same problem exists. When I am in the "your site title" and highlight text to replace, first it does not go away with the delete button at first. It does not retype over the selection. When I finally clear the type box and start typing if only goes so many letters before the typing is then hitting key commands. If I hit the spacebar after a word I am out of the type box and into the main window.
    Yes it will work to type in another word processor program (stickies, text edit, etc...) and copy and paste, but that *****. I would rather fix the problem.
    Anymore ideas?? Have you ever heard of this in Aperture?
    I did not reinstall the program. I would have to reinstall and then do the latest upgrades. You think it actually could be in the program rather than the computer system???
    Another computer, here, like mine, runs aperture and the text box works like a text box should, no problem.

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • How load text into dynamic text boxes from external file?

    hi all,
    my animation is very simple - a background image and 2 text boxes.  one of the textboxes shows a large word, which crossfades to another word, with a total of about 12 words (showing one at a time in different text boxes fading in & out in the same spot).
    i need a way to have the text be imported dynamically via xml or json (xml preferred).  this article is a good start, but i noticed he's putting all of the text into one box - i need separate strings put into separate boxes from the xml.
    Chris Gannon - Loading XML via AJAX into Adobe Edge
    he uses
    var outputField = $(this.lookupSelector(“xmlOutput”));
    for his text box.  what would be the best way to revise this code to include all my individual strings to be loaded into my individual text boxes?  thinking an array might work, but my js skills are limited.
    any other suggestions or tutorials you could point me to would be appreciated.
    thanks!!

    thanks joel_pau !
    this is helpful in seeing how the array is created, but after giving it a go I became a little confused.
    i wound up trying it again based on the example i linked out to previously, but it's not adding the text from my xml file when previewing.
    here's the code i'm using in edge animate on my stage.  something must be wrong somewhere.  let me know if you have any suggestions on this.
    // insert code to be run when the composition is fully loaded here
    // here i'm assigning a variable to each one of my textboxes at they're named in my edge animate comp
    var outputField1 = $(this.lookupSelector("helps2"));
    var outputField2 = $(this.lookupSelector("communicate"));
    var outputField3 = $(this.lookupSelector("experience"));
    var outputField4 = $(this.lookupSelector("interact"));
    var outputField5 = $(this.lookupSelector("understand"));
    var outputField6 = $(this.lookupSelector("overcome"));
    var outputField7 = $(this.lookupSelector("flourish"));
    var outputField8 = $(this.lookupSelector("collab"));
    var outputField9 = $(this.lookupSelector("trust"));
    var outputField10 = $(this.lookupSelector("grow"));
    var outputField11 = $(this.lookupSelector("engage"));
    var outputField12 = $(this.lookupSelector("survive"));
    var outputField13 = $(this.lookupSelector("thrive"));
    var outputField14 = $(this.lookupSelector("evolve"));
    var outputField15 = $(this.lookupSelector("connect"));
    var outputField16 = $(this.lookupSelector("achieve"));
    $.ajax({   
        type: "GET",
        url: "myxmlfile.xml",
        dataType: "xml",
        success: function(xml) {
    //here i'm trying to load the the text in my xml file into my textboxes in edge animate.  'txt1, txt2, txt3' are the tags in my xml file
            outputField1 = $(xml).find('txt1').text();
            outputField2 = $(xml).find('txt2').text();
            outputField3 = $(xml).find('txt3').text();
            outputField4 = $(xml).find('txt4').text();
            outputField5 = $(xml).find('txt5').text();
            outputField6 = $(xml).find('txt6').text();
            outputField7 = $(xml).find('txt7').text();
            outputField8 = $(xml).find('txt8').text();
            outputField9 = $(xml).find('txt9').text();
            outputField10 = $(xml).find('txt10').text();
            outputField11 = $(xml).find('txt11').text();
            outputField12 = $(xml).find('txt12').text();
            outputField13 = $(xml).find('txt13').text();
            outputField14 = $(xml).find('txt14').text();
            outputField15 = $(xml).find('txt15').text();
            outputField16 = $(xml).find('txt16').text();
    but nothing happens on preview.  my textboxes still contain the original text that lives in my comp.

  • Different coloured text in one Textbox

    Can someone PLEASE help me!!!!!!!!!!!!!!
    I need to know how to have different coloured text in the same textbox.
    My application has text being inputted into the textbox every 5 seconds from 2 different sources. I want to differenciate the text by showing the user 2 different colours for each source.
    Thank you very much

    Acording to the first post it also shows data, so it is a GUI component. i never sow a textbox.
    JTextPane can show data in different colors. also JTextArea can.
    Noah

  • How do I take data from a data grid and put it into a variable?

    I am having problems taking data from a datagrid (guess you got that from the title) and setting it to a variable. I am tak
    ing the data from 3 different rss feeds, depending on what button you press, and showing it in a grid. I would like to be able to do more with this data. Here is my code so far:
    <mx:VBox id="vbox" x="70" y="150">
      <mx:Label text="This Data Grid is doing nothing" />
      <mx:DataGrid width="1000" dataProvider="{fullXML}">
       <mx:columns>
        <mx:DataGridColumn id="dataGrid" *dataField="channel.description" headerText="Feed"/>
       </mx:columns>
      </mx:DataGrid>
    </mx:VBox>
    <!-- from test 5 -->
    <mx:Move id="moved" target="{hbox}" repeatCount="0" easingFunction="mx.effects.easing.Linear.easeIn" />
    <mx:HBox id="hbox" fontSize="12" fontFamily="courier">
      <mx:Label text="{website**}" />
    </mx:HBox>
    * this is the data I want to get out
    ** this is where I want to be able to put the variable.
    I don't know if I can do it here or if I need a function or what.
    I would like to be able to put it into an array, but step one is anything at all, so I'm trying just a variable.

    Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
    fullXML[myDataGrid.selectedIndex].FIELD_NAME;
    myDataGrid would be the id from the grid I am guessing?
    and selected index would be the channel.description part?
    and FIELD_NAME; is the variable name?
    does this go into a funtion or is it placed at the top where the variables are declared?

Maybe you are looking for