Captivate: Using Javascript to show/hide text captions

Hello,
I want to show/hide a text caption using javascript. I can't find the way of doing it with advanced actions. I dont know if it's because it belongs to a question slide in a pool. Does somebody knows if it's possible and how it can be done??

You can set the length of the variable when you insert it.
15 characters is just the default setting.
What I meant by COULD is that the kind of thing you are asking about here (using JavaScript to hide objects inside a Captivate movie at runtime) is not as simple as you'd like it to be.
JavaScript is not my particular area of expertise, but there are some people that chime in on this forum that ARE experts at JS. But I think they would also be the first to say that it's not as simple a thing to pull off as just "knowing the command to hide/show an object".
The easiest tool to use in Captivate for showing or hiding objects is Advanced Actions.  The next easiest thing to use is ActionScript 3, and that's hard.  JavaScript is a very useful programming language, but it spends all of its life outside the Captivate movie looking in through AS3's External Interface.  So JS alone is not going to solve all your issues.

Similar Messages

  • How hard is it to use javascript to show/hide fields. Is it easier to use the action builder?

    I know nothing about javascript and all that ive been using so far has been stuff ive found on here (thank you everyone).
    Using the action builder seems like its gonna be very tedious to do since i have so many subforms that hide, would it be esier to use javascript?

    I know nothing about javascript myself but I just created a form with about 10 different subform that show or hide depending on what the user chooses from a drop down list and I used Action Builder. If we don't know javascript, how can we use it? But Action Builder did a fine job of hiding/showing wherever I needed it. And Action Builder can do more than one thing by clicking that + sign when you are building an action.
    For instance, I needed to place a button in each subform that would close both the field that the person was working in and also the subform on the next page where the information was going into floating fields in a text block that was only visible thru a drop down list text select. I could have never figured out how to do that based on my knowledge of javascript. Thank Adobe for including Action Builder in this version of LiveCycle and I use it all the time. I find it extremely easy to use but it takes a little mental training to think thru the steps of how you can use the menu in Action Builder to make your form do what you need it to do.
    And if all else fails, ask this forum. I struggle for just so long before I come here and ask for help. I always get the answer I need. I hope you will too.
    Good luck,
    Jeanette

  • Using JavaScript to show/hide fragments

    Hi,
    Can anyone point me in the direction of information or an example of JavaScript being used to show or hide fragments within a form?
    I'm looking to add JavaScript to the XDP content of my fragments so that these fragments will be shown or hidden depending on the evaluation of certain conditions.
    If I create a form, and reference a fragment within that, then I can hide the fragment using this JavasScipt embedded within the form:
    xfa.form.MyForm.MyForm.MyFragment.presence="hidden"
    However, I'm looking to add the JavaScript to my fragment. I've used similar JavaScript but when the form and fragment are assembled the fragment is always displayed.
    Can anyone help here please?
    Thanks,
    Ray.

    Hi,
    Can anyone help here at all?
    All that I need for now is how to get JavaScript included in my fragment invoked when a form that includes that fragment is assembled.
    When the fragment is rendered by itself the JavaScript is invoked. But not when it's rendered from within another form. Why is this?
    Thanks,
    Ray.

  • Using javascript to show/hide buttons

    I need to show a hidden button on a slide, but I need to do it from within a javascript that is being called.  Does anyone know how to do this?  I know there are functions you can use to get/set variables (cpEIGetValue) but I don't know how to access &/or manipulate objects...
    Help?
    Thanks - Monica

    Hello,
    I'm sure this could work with advanced actions
    Since I have been blogging and writing a lot about advanced actions, perhaps I could help to debug? If this is acceptable to you, I will have a look at your actions, and try to understand what you want to realize. What do you think?
    Here is a link to my blog, just to prove my credibility:
    lilybiri's posterous
    Lilybiri

  • Advanced actions - trying to show a text caption

    I have a slide with 5 text captions made from smart shapes, and 5 click boxes. All 5 smart shapes are hidden. I have 5 variables, all of which are set to zero. When a click box is clicked on, the corresponding smart shape shows and the value of the first user variable is set to one. When another click box is clicked on the corresponding smart shape shows and the next user variable is set to 1. Each of the click boxes is set up in a similar fashion. I set up 5 advanced actions, and the On Success action for each of the click boxes uses one of 5 advanced actions. The action for each click box looks something like this (I'm using generic names for this example):
    IF variable1 is equal to 0
    ACTIONS
    Show textCaption1
    Assign variable1 with 1
    Play Audio sound.wav
    Continue
    This is working fine, and the corresponding smart shapes are showing as they should when each of the click boxes is clicked on.
    But I have an additional feedback text caption that I want to show after all 5 smart shapes are showing. I tried setting up an advanced action that looks like this:
    IF
    variable1 is equal to 1 AND
    variable2 is equal to 1 AND
    variable3 is equal to 1 AND
    variable4 is equal to 1 AND
    variable5 is equal to 1
    ACTIONS
    Show feedbackTextCaption
    But even after all of the click boxes have been clicked (which should set each of the 5 variables to 1), the feedback text caption does not show.
    Can anyone help with a suggestion?

    @Sreekanth, that is not the correct approach, because a user could click 5 times on the same click box and see the final text caption. Only when you disable an already clicked interactive object this can be used. Jay was right by choosing five different variables.
    @Jay How do you trigger that last conditional action? Which event do you use? You explain that the first described action is triggered by the click box, but not what is triggering the conditional action.
    I suspect you'll have to combine both actions, and assign them to each click box. That means a conditional action with two decisions:
    First decision 'Always' needs the condition 'IF 1 is equal to 1' to create a mimicked standard action, and has to show the text caption, to assign 1 to the variable and to play the audio. I don't know why you added 'Continue'? If the click boxes pause all at the same moment, don't add Continue, let the playhead remain at the same location.
    Second decision 'Checker' is the conditional action that you wrote, checking the values of the 5 variables, and if they have all the value 1 to show the feedback text.

  • Radio Button  javascript onclick  show hide textbox

    Currently, if the radio button is clicked then text box is
    shown else if radio button 2 is clicked then textbox is invisible.
    (only one textbox being shown or being hidden)
    I wish to have 2 text boxes
    If radio button 1 is clicked then textbox1 is visible
    If radio button 2 is clicked then textbox2 is visible.
    What changes do I have to do in my code for this to work?
    feel free to test this.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <script type="text/javascript">
    function hide() {
    var div_ref = document.all("id_div");
    div_ref.style.visibility = "hidden";
    function show() {
    var div_ref = document.all("id_div");
    div_ref.style.visibility = "visible";
    </script>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    </head>
    <body>
    <tr>
    <td>
    Select Device Type <BR>
    </td>
    <td style="width:200">
    <input type="Radio" name="DeviceGroup"
    value="Radiobutton1" onclick="show();" checked="checked">Radio
    button 1
    <input type="Radio" name="DeviceGroup"
    value="Radiobutton2" onclick="hide();" unchecked>Radio button 1
    </td>
    <td>
    <div id=id_div style="visibility:hidden;">
    Show Textbox1
    <input type="Text" name="Textbox1">
    </div>
    </td>
    </tr>
    </body>
    </html>
    Thanks

    thanks
    YES
    i will be submitting data to a field in the database.
    First the vlaue of the radio Button
    For example if the first radio button
    then the value of the first radio button value =1
    goes to the field in the database
    also
    the text box that will show. will have data entered in the
    tesx box and the value will be submitted
    to a field.
    thanks
    shall i still use your code????
    thanks
    also, instead of having 2 javascripts controlling the show
    hide, just join them and assume that at each click the div is
    visible.
    the first part of the if statement in the js just makes sure
    the div's display is none. then it displays the one you are
    calling.
    the else allows you to close the divs without having any
    open.
    i'm doing this from home, so i cant really test it, but, it
    looks like it should work.
    Attach Code

  • 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;

  • Using Javascript to change multiple text field names

    I have a pdf with multiple text fields. I need to change all the text field names (General -> Name) so that they are unique so that when I combine multiple pdfs together, the text fields will stay intact. Is there anyway to do this using javascript? Thanks!

    I'm new to javascript too...it will be very helpfull for me too...Thanks
    poltrone
    prodotti chimici

  • Captivate 5 on Windows - Round Trip text captions not working

    When I Export project captions to Word, edit the text captions in the Updated Text Caption Data column, save the Word document, then Import to Captivate, the edited captions do not change in Captivate. My changes to the Word document were indeed saved in Word -- I opened the document in Word and the changes I made were still in the table -- but the changes are not updating in Captivate upon Import.
    If anyone can help with this problem, I'd greatly appreciate it.

    Hi Jay
    I think you have to either close and re-open the Captivate project and retry the process or to restart Captivate.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Captivate 8 crashes when pasting a text caption or slides in a responsive project. Solutions?

    This version of Captivate has been fairly reliable, at least compared to versions 1-4 that I have worked with previously, however, five minutes into my first responsive project, I am getting fatal errors when I try to paste any text caption between slides. I also get fatal errors when trying to paste slides between responsive projects.
    Has anyone experienced this, and more importantly, does anyone have a solution?
    I am running Windows 8 SP1, Intel I7

    For posterity, seems like there are issues with certain custom captions and responsive projects. After reinstall, clearing every cache I am aware of, and running the clean preferences .bat, my custom captions no longer appear in the properties window, and I am able to copy stock captions between slides.
    Not sure if the reinstall was necessary or not. Here are the folders that appeared to cache data and the location of the .bat
    "C:\Program Files\Adobe\Adobe Captivate 8 x64\utils\CleanPreferencesWin.bat"
    "C:\Users\Brom\AppData\Local\Adobe\Captivate 8.0"
    "C:\Users\Public\Documents\Adobe\eLearning Assets\Layouts"
    If anyone has input as to what might make a custom caption crash a responsive project, I'd be interested. I wouldn't have bothered with custom captions, except that the stock ones are so amateurish.

  • Cp4 AS3 - using Javascript to generate a text string

    I'm a complete Javascript beginner, so please forgive me if this is a stupid question!
    I need to generate a pseudo random text string. I'm using the unpatched version of Cp4, AS3, Internet Explorer 7
    I've had a look at Captivate.Dev.com and the w3schools site to try to understand how to pass variables & basic javascript, and this is what I've come up with:
    var objCP = document.Captivate;
    function GenerateCode(){
    var rngen = new Array(8);
    var tgits = new Array(8);
    var cdrtn="";
    var lpdx=0;
    var mulier=1;
    for (lpdx=0;lpdx<=5;lpdx++){
    rngen[lpdx]=(Math.floor(Math.random()*9)+1);
    mlier=mulier*(rngen[lpdx]);
    tgits[lpdx]=rngen[lpdx]+"";
    cdrtn=cdrtn+tgits[lpdx];
    rngen[6]=(mlier%17)%10;
    rngen[7]=(mlier%13)%10;
    for (lpdx=6;lpdx<=7;lpdx++)
    tgits[lpdx]=rngen[lpdx]+"";
    cdrtn=cdrtn+tgits[lpdx];
    objCP.cpEISetValue('MyJavascriptVariable', cdrtn);
    GenerateCode();
    I've created a user variable called MyJavascriptVariable , put the code above in the On Slide Enter, Execute Javascript window on the first slide, and on the second a simple caption box showing the variable contents.
    However, when I press F12 I get an orange playbar at the top of the window, and in the middle the preloader and the captionbox (without the return value) flickering. i.e. classic sign of wrong AS version.
    If I change to AS2 the movie progresses ok, but the value the caption reports back for MyJavascriptVariable is blank.
    I know my core code works correctly - if I use the w3school's tryit editor with the code after the function declaration up to the closing curly before the objcCP line, with an addeded document.write to show the variable it works fine.
    It's clearly something to do with the way I'm declaring/passing the function or the way Cp runs the javascript. But what?
    Any help greatfully appreciated!
    Thanks

    Hi Jon,
    You are right... it works great on the W3Schools site.  Although in Cp, you ran into quite an issue using the modulus operater (%).  Looks like Cp needs the encoded version of this operator which is (%25).  Also, if you're using Cp4, then when you go to set the caption, you want to use objCP.cpSetValue();  Cp5 uses cpEISetValue.  I also try to use single quotes when working with strings.
    Here's the updated code:
    var objCP = document.Captivate;
    function GenerateCode() {
    var rngen = new Array(8);
    var tgits = new Array(8);
    var cdrtn='';
    var lpdx = 0;
    var mulier=1;
        for (lpdx=0; lpdx<=5; lpdx++){
            rngen[lpdx]=(Math.floor(Math.random()*9)+1);
            mlier=mulier*(rngen[lpdx]);
            tgits[lpdx]=rngen[lpdx]+'';
            cdrtn=cdrtn+tgits[lpdx];
    rngen[6]=(mlier %25 17) %25 10;
    rngen[7]=(mlier %25 13) %25 10;
       for (lpdx=6; lpdx<=7; lpdx++){
            tgits[lpdx]=rngen[lpdx]+'';
            cdrtn=cdrtn+tgits[lpdx];
    objCP.cpSetValue('MyJavascriptVariable', cdrtn);
    GenerateCode();
    This looks like some really crazy math.
    Let me know if this helps.
    Jim Leichliter

  • Need to Show/hide text on later page dependent on Button

    Ok, I am VERY new to Acrobat forms.  I am trying to use Acrobat X to build a large custom survey PDF form to be used on a variety of Tablet platforms (PC/Android/Mac) so I am trying to limit any "special" coding that different platforms might not support.
    I have scanned the discussion boards and found lots of close examples, but nothing quite fits.
    Situation is like this.  I have a LOTS of Radio Boxes, and Pull downs (16 pages worth)
    Condition Red List
      [ ] Condition One
      [ ] Condition two
      [ ] condition three
    Condition Green List
    [ ] Condition One
    [ ] Condition two
    [ ] condition three
    Some are exclusive (only one valid choice) others support multiples ( condition one AND three)
    Easy so far....
    SEVERAL (16) PAGES LATER there is a SUMMARY page where I want to display (or not) the descriptive Text associated with SOME of the earlier choices.
    Pretty Summary Header, date project numbert etc....
    Disclaimer text Bla Bla Bla
    The follwoing is a SUMMARY of the major issues from the previous pages
    White summary : This is the Text associated with White condition two. this could be a line, a list of things, or a paragraph
    Red    summary : This is the Text associated with Red condition three. this could be a line, a list of things, or a paragraph
    Green summary : This is the Text associated with Green condition two. this could be a line, a list of things, or a paragraph
    Green summary : This is the Text associated with Green condition three. this could be a line, a list of things, or a paragraph
    More disclaimer text
    I understand (sortof) that I can have a Variable "red_list_1" that can be true/false and that will affect a line/field back on the summary page....
    The following is a cut-n-paste ROUGH of what I think I need... it hasn't been tested (yet) and I am sure there are typos.  There are LOTS of examples of scripts that make things appear/dissapear (like the following) but I am trying to find a SIMPLE one that will the best when there are lots of them....
    var f = this.getField("Red_list_1");
    if (f.value==(true))
        g.display = display.hidden;
    else
        g.display = display.visible;
    Ok...a couple of things I don't yet get...
    Can I combine statements/functions like I used to in (insert old language here) like
         if (this.getfield("Red_list_1").value)==true then g.display = display.hidden else g.display = display.visible
    On my Summary page, do I need lots of fields that hide/disappear, or can I build one Monster field with lots of stuff inside it?
    If I have lots of fields, how do I get them to flow nicely together?
    My form is HUGE (16 pages of questions) , so I will have lots of text that 'can' be copied to the summary page, is there an easier way to build such a thing?
    Lastly, and this is may be a question unto its self... If the "Summary" needs to go onto a 2nd (or more) page, how do I make sure it will "flow" nicely?
    Note: The nice thing is that the filled in form -IS- the final product.  I don't need to upload it, syncronize it, or otherwise send it anywhere.  I will save the filled in form for reference and edits (if needed) but the client get a copy of all 17 pages (16 + summary) and thats it.
    Oh yes...I am using Acrobat as it works, is supported, and doesn't need the cloud and will run on standalone devices with no cloud connectivity.  Once the surveyor has the form they can go anywhere with it, complete the form, even print a copy of it, without needing to upload anything.
    Thanks for the help, I have been working this for a while, and keep getting partial solutions, some that work great, but are really really messy to try to do on a large scale, others use lots of stuff supposedly not supported on the Apple Ipad reader. (everything I have tried has worked???, not sure the issue)

    Hi,
    You have a couple of different options, You can have a condition on the form and report. So you choose the condition as something like Request = Expression 1 for the form and enter CREATE. Then in the report user Report != Expression 1 and enter CREATE. That way it will show the report all the time except when CREATE is pressed.
    If you want to make it a bit more sophisticated you can use a Dynamic Action, so you have a dynamic action that has a true action of show the form and another true action of hide the report and then the opposite way round in a a false action and set the false action to fire on page load.
    Hope this helps
    Thanks
    Paul

  • Do I need to use javascript to get a text field in a PDF form to aut fill with current/today's date?

    I have a form for booking appointments and would like the date field to automatically fill with
    today's date and to print. I have set the text field's format to "Date" and when I place the cursor into the
    date field, today's date shows. It disappears as soon as I tab to the next field.
    Does this action require a javascript script to fill and print today's date? If so, where do I find that?
    Or is there another way to format the text field (besides typing today's date) to get the current date?
    Thanks.
    Ali
    using iMac 2.93 GHz Intel Core 2 Duo 8 GB | OS Snow Leopard 10.6.8 | Acrobat Pro 8

    Thank you GKaiseril!
    From the examples by Chris Dahl, I edited the script in the text field editing dialog to reflect the title I had given the field. That fixed the problem of today's date disappearing as soon as I tabbed to the next field.
    How do I choose for document level or page open script? I would like it to insert the date upon opening the document.
    Thanks again.
    Ali
    NOTE: I found the answer within Chris Dahl's tutorial... path is for Acrobat Pro 8: Advanced>Document Processing>Document Javascripts

  • 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

  • Help Needed with JavaScript for show/hide subforms controlled by dropdown selection... Please!

    I have created a form that depending on what is seleced in a drop down menu it should determine what subform is displayed. The code I am pasting below only works with one (4 total) of the selections in the dropdown.
    I am not a scriptor by any strectch of the imagination! Can anyone see what I need to fix in the below to get this to work. It is almost like I am missing some sort of "or" statement... Any suggestions?
    Here is the current javascript associated with the dropdown field:
    form1.jobselection.customjob::change - (JavaScript, client)
    customprint.presence = "hidden";
    frontpagenote.presence = "hidden";
    weprint.presence = "hidden";
    preprint.presence = "hidden";
    if (xfa.event.newText == "CustomPrint"){customprint.presence = "visible";}
    else {frontpagenote.presence = "hidden";
    weprint.presence = "hidden";
    preprint.presence = "hidden";}
    if (xfa.event.newText == "PrePrint"){preprint.presence = "visible";}
    else {frontpagenote.presence = "hidden";
    weprint.presence = "hidden";
    customprint.presence = "hidden";}
    if (xfa.event.newText == "FrontPageNote"){frontpagenote.presence = "visible";}
    else {preprint.presence = "hidden";
    weprint.presence = "hidden";
    customprint.presence = "hidden";}
    if (xfa.event.newText == "WePrint"){weprint.presence = "visible";}
    else {frontpagenote.presence = "hidden";
    preprint.presence = "hidden";
    customprint.presence = "hidden";}
    form1.jobselection.customjob::click - (JavaScript, client)
    if (customjob.rawValue == CustomPrint)
    xfa.resolveNode(form1.jobselection.customprint).presence="visible";
    else
    xfa.resolveNode(form1.jobselection.customprint).presence="hidden";

    First of all i suggest you clean up the code a bit. Use this for example.
    var strSelectedText = xfa.event.newText;
    customprint.presence      = (strSelectedText == "CustomPrint") ? "visible" : "hidden";
    preprint.presence            = (strSelectedText == "PrePrint") ? "visible" : "hidden";
    frontpagenote.presence   = (strSelectedText == "FrontPageNote") ? "visible" : "hidden";
    weprint.presence            = (strSelectedText == "WePrint") ? "visible" : "hidden";
    //Optional code for checking values. You might want to put this in the exit-event.
    console.show();
    console.println("value = " + strSelectedText );
    console.println("customprint.presence = " +customprint.presence );
    console.println("preprint.presence = " + preprint.presence );
    console.println("frontpagenote.presence  = " + frontpagenote.presence  );
    console.println("weprint.presence = " + weprint.presence );
    // End optional code.
    What the above does is just have the same if/else you use, it just does it in much less code/scripting.
    The optional code is for you to verify what actually goes on. Wich values are changed or given, etc.
    What also might help is to write down the full path off the subform you want to change the presence of.
    So instead of "frontpage.presence" you write down "form1.frontpage.presence".
    Hope this helps.
    Rien.

Maybe you are looking for

  • How can i copy a pdf to a ppt?

    how can i copy a pdf to a ppt?

  • HP Compaq d330 uT d330m/P2.8C/40bc/128F/4

    Dear Sirs, We are getting message INPUT NOT SUPPORTED on the display Kindly advice why we are getting message INPUT NOT SUPPORTED, IN CASE IT IS IS BECAUSE OF DRIVER FOR VIDEO, request to let us have the driver S/N of CPU[edited by Moderator], P/N  P

  • Returns Purchase Order

    I am currently using a 161 movement type to generate raw materials returns PO to vendors. Is there a way of linking the original PO to the returns PO?

  • IMessage show one of my contact old number

    I am using a MacBook Pro and when i click on a contact it show old and actual number from a contact. I tried to delete this person from my contact and then add but it still shows old and actual number only on iMessage.

  • Limiting bandwidth on client side with Camera.setQuality() inconsistent?

    After successful bandwidthCheck() limiting bandwidth to setQuality(75000, 100) leads to the desired result of publishing the stream with max bitrate of 75000 byte/s. On other locations the same setting results in publishing the stream with max bitrat