Using javascript to make a text box invisible by clicking a radiobutton

hi
my radiobuttons are for a persons title eg Mr Miss Mrs Ms and value 5 is for other.
when i click other i want a text box to appear that a user can write in, and if the user changes their mind after writing in the box i want the text box to disappear
you may of noticed i am new to java. this is the code i have used for my text box
topmostSubform.Page1.titleother::calculate - (JavaScript, client)
if (titlebox.rawValue == 5)
this.presence = "visible";
else
this.presence = "invisible";
this.rawValue;
i have tried variations of this script but it still doesnt work the way it should. i tried searching forums and help files but couild not find an answer to this simple problem... can anyone help

thnaks for your post thomas i appreciate your help on this :)
yes it did put 'other' in my text box.
i managed to overcome the proble using a workaround, it isnt ideal but it works. i put a clickevent in the radiobuttons and changed the text box from calculated to optional

Similar Messages

  • I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it. help help help please - I have latest version of indesign - thanks

    I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it.
    Is it not possible to create a text box, fill it with dynamic (data driven) text, but make the font size either scale up or down automatically, so that the entire text box is filled? This is a feature in PrintShop Mail Pro called COPY FIT. but no such feature in Indesign??
    help help help please - I have latest version of indesign - thanks, DJ

    lol... it seems to work, but I have another huge problem!
    Apparently .CSV files cannot contain page breaks in the data! The data I am trying to merge is a 'letter', with paragraphs, line breaks, etc.,
    But, after data merging, it ignores page breaks and only merges the first paragraph of each letter. (sigh)
    Solution? Hopefully, an EASY solution. lol as we have thousands of records.
    Is there a third party indesign plugin that will allow .xml, or .xls data merge import??
    Thx,
    DJ

  • How can I make a text box in Aperture transparent??

    Hello,
    After a great trip to Thailand I want to make a book of all my pictures using Aperture 3. At some places in the book I use a title to indicate what will be shown on the image. This title is made by the text box and it is put on the image itself. Now what I would like is to make is a transparent bar of the text box, so that I still can see the details of the image through this bar and also read the text about the image easily.
    I have no problems making this text box and putting it in the right place, the thing that I don't understand, after two nights of trying, is how to make this text box transparent.
    Any help is appreciated!
    Thanks in advance!

    Perhaps I need to reformulate what I exactly want to do...!
    I would like to use transparent text boxes but not as transparent as the image itself. I want to show the text box as a real bar but slightly different than the original image colour. So something between a normal image and a white bar so that it will be a bit transparent but also shown as a real bar..
    I think the text boxes of each theme are identical, so yes you are right about the transparent text boxes of art collection but they are the same as photo essay.
    Do you understand what I mean?

  • How can I click on a button and make a text box appear or disappear

    How can I click on a button and make a text box appear or disappear?
    Thanks ahead of time for your help,
    Doug

    Hi Denes,
    I just thought that the example you pointed the OP to, is far more complex than what I understood he needs. The OP was talking about using a button, which I thought was a very basic and simple case. Your example is much more complicated. If memory serves, the radio group item, at the time (prior to 3.1 fieldset) behaved differently, so you needed to create a new value retrieving function, and then was the need to preserve the items show/hide status upon reloading the page. In short, I thought maybe I didn’t see the complexity in the OP post, but it seems that his requirement was indeed a simple one.
    Regards,
    Arie.

  • Using Automator to create a text box of certain size

    I'm very new to using automator... in fact I haven't used it at all, but I am wondering if I can use it to create a text box of the same size each type to type in within preview (a PDF document).  Basically I want to click or push something and have a text box be generated that is the same size each time.
    Thanks!

    1. In the Finder actions you will need:
    - Get Specified Finder Items, and point it towards the folder that will contain the movie.
    - Get Folder Contents - to get what's inside the folder.
    - Filter Finder Items - set to filter by 'Name Extension' 'Is equal to' 'mov' and make sure all your video files have the right extension...
    - Open Finder Items - in QT Player - note that this might cause problems if there are multiple files in the folder...
    Then from the QT Player actions:
    - Play Movies.
    2. Save As... Application, then after saving, drag the app into the login items for the user account.
    3. That's going to need some AppleScript, but this thread should get you started:
    http://discussions.apple.com/thread.jspa?threadID=455825&tstart=0
    Ian

  • Is it possible to make a text box cycle/rotate through text, like a slide show does?

    Is it possible to make a text box cycle through 3 or 4 separate pieces/groups of text, like a slide show does with photos? So that when I open my site a text area says "Statement 1", then 10 seconds later it changes to "Statement 2", then 10 seconds later it chagnes to "Statement 3", etc.
    Its that possible with a text box? My desire is to have 3 or 4 testimonials that change every 10 seconds.
    You can see that right now it's a single testimonial:
    www.kmlstudio.com
    All help is appreciated
    Thanks!
    Kevin

    Right.  Some plugins have zip file downloads while others are just copy & paste.
    In DW, go to File > New > Blank page > JavaScript.
    Copy & paste the Cycle plugin code into your new JS page. 
    SaveAs   cycle.2.9.81.js  in whichever site folder you normally keep scripts.
    Link your HTML page to your new cycle script:
    Insert > Script > Script (browse to folder containing your cycle script). Hit OK.
    Don't forget to add a link to the jQuery core library, too.  Plugins don't work without it.
    Nancy O.

  • How to convert the Adobe 10 PDF to Adobe LiveCycle ES2 so that I can make the text boxes expandable?

    When I convert the Adobe 10 PDF to Adobe LiveCycle ES2 it is a static document, thus not allowing me to make the text boxes expandable.  How do I take a current Adobe 10 PDF with Text and convert it to Adobe LiveCycle ES2 so that I can make the text boxes expandable?

    Hi Alan,
    TextField objects can expand dynamically.  There are a few things that you need to do:
    1. The TextField object should be contained in a subform that is set to Content: Flowed.  This isn't technically necessary, but if you have anything below the expanding text box and the subform is set to Positioned, the text will expand and overlay what's below.
    2. On the Field tab of the text field's Object property tab, check the Allow Multiple Lines checkbox
    3. On the Layout tab, check the Expand To Fit checkbox under Y:/Height
    4. Set the PDF Render Format under Form Properties/Defaults to Dynamic XML Form.  If you're previewing in Designer, don't forget to set the preview to Dynamic too.
    Regards,
    Rave

  • Can someome help me make these text boxes expandable?

    hello,
    I can not seem to figure out how to make the text boxes on the 2nd page of this 2 page document.  Could someone do that for me?
    Thanks

    Two issues .....
    1. The form must be saved as a dynamic Form. Under the SaveAs menu make sure that you choose a type of Dynamic PDF.
    2. The root subform for Page 2 must be set to flowed. Once that is done everything will shift to the left. On the subform object in the layout tab you can set a .25 in margin to put the object back where they were.
    Paul

  • How can I make a text box with 2 columns?

    I can't figure out how to make a text box with two columns. I made one in pages and pasted it into iWeb but it seems to have turned it into an image when I published to a folder. I want to keep it text so the search engines will index it.
    Any suggestions would be greatly appreciated.
    Thanks, David

    You will have to create two text boxes, configure them as columns and then paste into the first and cut where you want the columns to end and paste the remainder into the second column as on this page . I've tried saving a two column Word document as a web page and it just converts it to one column.
    OT

  • How do I use Javascript to populate a text field based on a selection from a drop down box?

    Greetings,
    I have virtually no experience with JavaScript and I am trying to figure out how to add some basic automation features to an Adobe form.  I have a drop down box called "Hospital_Name" that will contain approximately 7 possible selections.  When the user makes a selection, I would like to have the text field (called "Hospital_Address") below the drop down box populate with the corresponding address for the selection.  I have the "Hospital_Address" text field configured for multiple lines and would like the address to have a line break between the street address and the city/state/zip.
    For example, if the user selected "Hospital 1", the text field would display:
    123 Main St
    Anytown, CA 12345
    Any help or examples you can provide would be greatly appreciated.

    You have the element names within the object within brackets.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    // some debugging code to see location names;
    console.show();console.clear():
    for(I in Location) {
    console.println(I);
    // end debugging code;
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;
    This is not a beginners task but requires a fair amount of knowledge about the structure of objects, defining strings, and structure of arrays.
    Are you sure you have all the field names correctly spelled and capitalized?
    Do you get any error in the JavaScript console?
    Just trying the line that defines the "Location", I get the following error:
    SyntaxError: invalid property id
    1:Console:Exec
    undefined
    All the form field in a PDF are processed by using JavaScript and any error in any script will stop JavaScript processing.
    It might help to have a link to the problem form.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;

  • An easy way to make a text box blink??

    Hello everyone! So I can make a graphic symbol blink easy enough, but I am trying to "simulate" an electronic LCD screen, so I would like to display the value of a variable in a dynamic text box and make it blink. The idea is kind of like an alarm clock, where you select "set hours", and the hour field blinks while you change it. Is there an easy way to make a dynamic text box blink? Any thoughts would be appreciated, thanks all!

    you can use a loop (like a timer) to toggle the textfields visibility.

  • How do I make a text box solid if the value in the field is greater than 0 and do this for all recor

    Hello,
    I have several text boxes on a document, and wish to make the boxes either solid or visible if the value in the field is greater than 0.
    I am using an excel file for the data, each cell with either 1 or 0 (true or false).
    Any help would be appreciated.
    Thanks,
    BJ

    Yes, I also sent an email regarding this problem.
    I am using XNET to write a custom device for PXI-8516 LIN card.
    I've attached a couple snippets showing where I've tracked the problem.
    The only error that I've seen comes from the XNET Wait vi in the timeout snippet.  I believe that error occurs because frame queued in the write snippet is never transmitted by the LIN card.
    Attachments:
    Timeout_Error_Snippet.png ‏22 KB
    XNET_Write_Snippet.png ‏24 KB

  • Problem with action script 3 make input text box and button....

    Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
    air for android only work with AS3,
    the search function is to type a person's name and hit submit then go to a specific frame.
    have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
    Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
    (it work find in AS2 but not in AS3,)
    Here is my current code that is placed on the main timeline, first frame:
    stop();
    onEnterFrame = function () {
        submit.onRelease = function() {
            switch (yourname.text) {
            case "name1" :
                gotoAndStop(2);
                break;
            case "name2" :
                gotoAndStop(3);
                break;
    My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
    My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
    Basically, I'm having a problem with making this to work with AS3.

    you should use the default option in the switch statement
    that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
    function onSubmit(e:MouseEvent):void
                                  switch (yourname.text)
                                            case "name1":
                                                      gotoAndStop(2);
                                                      break;
                                            case "name2":
                                                      gotoAndStop(3);
                                                      break;
                                            default:
                                                      goToAndStop(you frame you want);
                                            break;

  • How do I change the colour of a page in Pages without using a floating shape or text box?

    I want to change the colour of a page in Pages without having to stretch out a floating coloured shape or using a text box to write the text in. I have been stretching shapes and using text boxes for years but surely there is an simpler and more elegant way to do this? Plus, I want to be able to type several pages of continuous text and not have to split the text up into multiple text boxes. Any help most welcome.

    bigj wrote:
    I want to change the colour of a page in Pages without having to stretch out a floating coloured shape or using a text box to write the text in. I have been stretching shapes and using text boxes for years but surely there is an simpler and more elegant way to do this?
    There are a whole lot more really essential features missing in Pages than this.
    bigj wrote:
    Plus, I want to be able to type several pages of continuous text and not have to split the text up into multiple text boxes. Any help most welcome.
    What is stopping you?
    Peter

  • How to make form text box field display name or instructions?

    Using form tools, I have added text boxes in my PDF that I would like to have the field name display. So the user would understand what kind of info they need to fill in. For example, [Type organization name here] in one box and [type address] in another. This is not an actual form, so I don't want to put those labels outside the field as shown on the adobe sample form.

    You can add your text to the 'tool tip' for the field's properties, use the right mouse click.

Maybe you are looking for

  • Exception in XI sender mail adapter

    Hi, XI sender mail adapter raised the following exception when it was fetching emails from a mailbox on a MS mail server while these mails were sent from a unix system. Adapter-Error: exception caught during processing mail message [1]com.sap.aii.mes

  • Table Creation taking a lot of time in SAP 2007...

    I have an SAP Addon which is created in SAP2005...Right now i changed the code to SAP 2007...But the Problem i am facing is, it takes a lot of time to created the usertabels thorugh SAP 2007 code...Around 5 minutes it takes....But i created the usert

  • Network/IP camera (Toshiba IK WB15A)

    How or can I configure a network camera (Toshiba IK WB15A) to stream/broadcast to my flash media server 3.51?  Thanks in advance?

  • I hv I pad one, is there a way I can use ustream and 4shared

    I hv I pad one, is there a way I can use ustream and 4shared on it

  • Button Alignment Issue

    I have some custom buttons added to the sales order screen.  When the font in B1 is set to "10", the buttons show up and are aligned just fine.  When the user changes the font to anything other than "10", the buttons become mis-aligned and moved on t