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

Similar Messages

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

  • 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

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

  • How can I have a button that will show/hide a text box and images on the same page?

    I have a page like below:
    I want to make so that those 3 buttons show different text under them when they are each pressed. How can I achieve this?
    Thanks.

    Hello,
    Please try using Tooltip Composition Widget to achieve that..
    You need to customize  the trigger as the button  and you can use the target to insert desired text box or images.
    you can find this in Widgets library panel > composition
    Please let me know in case you need any other clarification on that.
    Regards
    Vivek

  • My problem is Apple products used to work so well and be so easy to use.  What happened?

    My problem is Apple products used to work so well and be so easy to use.  What happened?  Whether its transferring Word and Pages documents, downloading and using iBooks, etc.

    Apple products still work so well and are easy to use....what's the problem?

  • Using Javascript to show/unshow a field based on input in another field

    I want to display/not display a field in a JSP depending on what is selected in another field.
    I am using <div></div> element currently which is displayed/not displayed using a Javascript invoked by the first field.
    the problem with div is that I have to put it inside a <tr><td> otherwise it doesn't work. This makes the field look aloof from the rest of the page, and is also not aligned with the other fields.
    Is there anything other than <div> that can be used? or is there a way to correct the look of the field inside a div?
    Thanks

    You shouldn't have to put it inside a <tr><td> to get it to work. I've done what you are trying to do with <span></span> and it worked fine. I haven't tried it with a <div> but I can't image why that wouldn't work. Maybe you could post your code.

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

  • 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 to pass an array or structure, in addition to a query, or multiple queries to the Report Builder as parameters

    Is there a way to pass an array or structure for example as parameters, in addition to a query, or multiple queries to the Report Builder in CF8? I believe this was recommended by users to be in CF8.

    BrianO,
    Although it's been a while, I thought I'd provide the code to do this for you. It works for me in CF8, and probably will in CF7.
    Here I create a structure called My, and provide that one parameter to my CFReportParam tag.
    <CFSet My = {
    Client = "Client Name",
    ReportDateFrom = DateFormat(ThisStartDate, DateMask),
    ReportDateTo = DateFormat(ThisEndDate, DateMask),
    PageHeaderImage = ImagePath & "\Logos\Page_Header.png",
    WatermarkImage = ImagePath & "\Logos\Watermark.png",
    GetBarSummary = GetBarSummary,
    GetPieSummary = GetPieSummary
    }>
    <CFReport Template="#ReportPath#\SpendSummary.cfr" Format="PDF" Query="GetSummary">
    <CFReportParam Name="My" Value="#My#">
    </CFReport>
    Inside the report itself, reference the given parameter as Param.My.PageHeaderImage for example. It can be referenced that way from any expression inside the report builder. You can even use the queries as the data source for charts (using the Data From a Query -> Query Builder -> Advanced) by entering "Param.My.GetPieSummary" where it says "Variable containing query object".
    HTH
    Swift

  • How are you using Javascript in your courses? Anyone have some good use cases?

    Anyone have some good use cases?

    Please click on the link mentioned below. It can be useful for you.
    https://helpx.adobe.com/captivate/using/common-js-interface.html
    Regards,
    Rajeev.

  • How can I customise Thunderbird message columns to show sender raw address (not display name) and the "Received for" email address that was used to reach me?

    I find it increasingly important to be able to see a sender's actual email address rather than just display name, as they usually don't show a company name - which a domain always would. Is there a way to customise settings/write a script/tweak files to add raw email & domain name columns? When dealing with a number of people at the same company it is hard to order or glance through a list of emails to find them. I also know 2 people with the same name at different companies and it is impossible to distinguish!
    Secondly, as a related column addition, since a number of email aliases reach me it would be useful to have a column to show the "Received..for" part of the message source which reveals the actual email used in the To/CC/BCC which led to me. Again can this be tweaked or scripted?
    I have programming experience but have not made add-ons and would be open to a suggestion which involves creating a custom add-on if adding columns with custom values is possible that way.
    Best Regards,
    Drew

    Extended message headers can be searched from Edit/Find/Search Messages, or the folder context menu, by adding custom headers to the search criteria. So, you might be able to create a search on specific properties of a message.
    The method of adding custom headers to searches is the same as the one described here for filters:
    http://kb.mozillazine.org/Filters_(Thunderbird)#Custom_headers

  • How to show/hide sliders on a slider control using property nodes?

    If I have a slider with multiple sliders on it how do I change which sliders are visible using property nodes? The only property I have found is making the entire control to be visible or not.  This is a possible solution to have two different controls, one slider with only one slider and another slider with two sliders overlapped, but not desirable.
    I found on a thread in the forum that it is possible but the user did not provide any specifics about which property it was. (http://forums.ni.com/ni/board/message?board.id=170&message.id=181279&query.id=34404#M181279)
    I would appreciate an example VI if possible (Preferred version is 8.5 but versios 8.2, 8.0, and 8.6 are available to me).
    Thank you in advance for the help,
    Aaron

    Just make them transparent! Here's a quick draft.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HideSliders.vi ‏20 KB

  • Using javascript to show all comments on startup

    I would like all comments to show on all documents when a document is opened.  Right now I have the following code to create a menu option. This runs fine, but when I make a simple call to showAllComments(), I get the error "this.syncAnnotScan(); is not a function"  How can I get the function showAllComments() to run when Adobe Reader is opened?
    if ( typeof sdkMenuItem == "undefined")
              var sdkMenuItem = false;
    if (!sdkMenuItem) {
              sdkMenuItem = true;
              app.addSubMenu( {
                 cName:"ACROSDK:JSSubMenu",
                 cUser: "Acrobat SDK JavaScript",
                 cParent: "Edit",
                 nPos: 0
    app.addMenuItem({
       cName:"ACROSDK:ShowAllComments",
       cUser:"Show All Comments",
       cParent: "ACROSDK:JSSubMenu",
       cExec: "showAllComments();",
       cEnable: "event.rc = (event.target != null);" // active only with docs open
    * main function
    function showAllComments()
        try {
                            this.syncAnnotScan();
                        var annots = this.getAnnots();
                        if (annots == null) { app.alert('not found'); }
                        for (var i=0; i<annots.length; i++)
                                            annots[i].hidden = false;
       catch(e){app.alert(e);}

    You shouldn't have to put it inside a <tr><td> to get it to work. I've done what you are trying to do with <span></span> and it worked fine. I haven't tried it with a <div> but I can't image why that wouldn't work. Maybe you could post your code.

  • Using javaScript to change a field from required to not required

    Hi,
    I have what seems like a simple question .I would like to know if it is possible to have a function call from my jsf code to a javascript function which could change a text field input from required to not required .
    I can do this through the server but would prefer to do it in the front end .
    e.g . I have a pull down list and when I click on one of the values it calls a function in javascript which changes a text field from required to not required .
    Hope this is clear .
    Thanks for your help.

    Instead of having the field required on the component defeiniton, put that requirement on code.
    Either way you can't do that on javascript. If you could do that then you could fool the aplication...

Maybe you are looking for

  • Problem with Duplicate Movie Clip which is tracked in an Array

    I have a problem with my inventory code using Shared Objects. What i did was to track the collected items in an array. Each time the user collects an item, the original iconMC is duplicated and loads a picture of the item (function loadImage). Howeve

  • Mac mini freezes regularly - log file enclosed - what do I need to do?

    Hi, My mini crashes every couple of days - and has to be rebooted. I've been updating the OS and software regularly but it continues to freeze and has to be rebooted each time. I'm enclosing a typical log file from a crash. Any help / insight about w

  • SOAP Response not return when exception is thrown

    Hi, Wonder if anyone had encountered the same issue as me with SOAP Response. Adobe LiveCycle ES2 (v9.0.0.2) I had a process which is triggered using SOAP Endpoint. Whenever there is exception in the process the SOAP Response will have an error, inst

  • Administrator Privileges

    Hello - I imported some photos from a digitalcamera to iPhoto, then I copied "Burnt" them to a CD. Now I am attempting to copy them back onto my computer into a Empty Folder, and I get this message. "You may need to enter the name and password for an

  • Wrong ELF data format

    Hi, Platform : Solaris x86 Weblogic: 8.1 SP3 I'm installing Weblogic server and after configuring a single domain I get the following exception at startup: The WebLogic Server did not start up properly. java.lang.UnsatisfiedLinkError: /usr/local/webl