Use a checkbox to hide/show (toggle) another field

I have a form I am creating in Adobe Acrobat X.  The form will ultimately be used as a data entry interface on iPads.  I need to keep the form very simple but there is a lot of technical information the end users may need to help fill out the forms.  I would like to be able to have a button, checkbox or other object enable the user to display additional information.
I have played with making links to attached documents, using the article tool and finally trying to use a checkbox to drive the hidden/visible property of a text field.  Admittedly, I am a horrific programmer so I need some spoon fed help. 
My check box is called: GMR1_1_Details_Select
The text field is called: GMR1_1_Details
I have been trying this and that with JavaScript in both the Actions tab and Calculate tab and am unsuccessful.
Can anyone solve this puzzle for me?  I want to code this into my form:
// so when the check box named "GMR1_1_Details_Select" is checked, my text box field ("GMR1_1_Details") is visible.  If the user unchecks the box, it would be hidden.  By default, the text box should be hidden and the checkbox shouldbe unchecked.
If GMR1_1_Details_Select = yes
Then GMR1_1_Details = visible
else
GMR1_1_Details = hidden
I have tried codes similar to:
if (event.target.value!="On") This.getfield(“GMR1_1_Details”).display = display.hidden;
and other code similar to:
Var GMR1_1 = this.getField(“GMR1_1_Details”);
If(GMR1_1==="yes");
This.getfield(“text10”).display = display.hidden;
else
This.getfield(“text10”).display = display.visible;
In both cases I am getting nothing.  I have realized that I have at least 2 problems:
1) I don't know how to write the right code and,
2) I don't know where to put it.
Please and thank you

Yes, here is a link to the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.135.html
There are a number of examples that demonstrate various options. You can add a title, but to make the JavaScript warning go away the document would have to be certified and the user would have to trust it to execute JavaScript, or each user would have to install a JavaScript file in a particular location on their system. If this might be feasible for your situation, post again for more details.
If you want to get really fancy, it's possible to create custom dialogs that include things like images as well as text, and you have more control over the layout. This is one of the more complicated things in Acrobat JavaScript though, so you have to really want it if you plan on learning more.

Similar Messages

  • Use embedded .swf to hide/show a button

    Captivate 4
    Flash CS4
    ActionScript 2.0
    Afternoon Fellow Captivators!!
    okay - so here's the thing, I have a custom interaction that i have built in Flash.  I want to force the user to go through this entire interaction before proceeding to the next slide.  The easiest way, in my eyes, to do this would be.
    1) Hide the "next" button, toggle it's "visible" to off
    2) The user then goes through the entire animation/interaction
    3) at the end of the interaction, the animation communicates with Captivate to now SHOW the "next" button - or toggle it's visibility to on...
    Does anyone else know of a way to do this - I've been looking through all of the Captivate variables, and don't see anything to toggle the visible option for it.
    Thanks for the help!

    If you want to accomplish this in Captivate 4, Paul Dehurst has a Widget that will do what you need.  He offers it for FREE at his site here:  http://www.raisingaimee.co.uk/index.php?option=com_content&view=article&id=113:hideshow-bu ttons-widgets&catid=31:captivate-4&Itemid=55
    If you use it, you might consider making a donation to him for his incredible work!
    The downside is that Paul has retired from Widget making and there is no update for Captivate 5.  Anyone want to take this development on for Cap 5?

  • How do I use a Cross-Tab to show me multiple fields without Summaries?

    Post Author: lindad
    CA Forum: Charts and Graphs
    Is it possible to add a Cross-Tab to a report with 6 columns and 4 rows; the values in each field are taken from a different field in the db and no summaries are used?
    Essentially the cross-tab needs to look like a table that you would create in Excel or Word.

    Post Author: Manuel de Kleine
    CA Forum: Charts and Graphs
    Linda,You cannot do that, because cross-tabs have always a summary on the axes (the number of having the value in the column AND the value in the row).If you need a table, you can use borders for your field and field header.

  • Hide show button and textual area via Javascript or jQuery

    Hi folks am Apex newbie using 4.0.1 on Vista laptop running OracleXE (for dev purposes)
    A quick desc of what items are on the page of my Helpdesk appkication and what I want to achieve ..
    I have a Progress region defined on the page - with textual areas and some region buttons.
    Details are have 2 textual areas in my region - 1st textual area shows current progress (this is read only).
    Second textual region is where IT person will type latest progress on Helpdesk prob (ticket).
    There is a region button Save Progress Text which when pressed will append text from textual area 2 into textual area 1 and
    also appends text e.g date / time / userid etc of progress text added.
    This all works fine.
    Have added a new region button - call it Enter Progress Text - which I would like when pressed will make textual area 2 and the Save Progress Text buttons visible.
    I can hide and show the textual area 2 via $X_show / hide but cannot for life of me hide the Save Progress Text button.
    I also tried to make a subregion holding textual area 2 and the Svae Progress Text button but again via Javascript / jQuery could not hide the subregion.
    Can someone please tell me the syntax of how to hide via Javascript / jquery as can't find anything much at all in the Apex online documentation.
    Many, many thanks as always.
    P.S Don't want to use dynamic actions or hide / show region as want there to be buttons on screen to make things explicit for user hence my desire to use Javascript.
    Wiggywig

    Hi,
    If its a page item then you can use below script to hide it.
    <script type="text/javascript">
        $x_HideItemRow('Put your item name');
    </script>*Put this code in page footer..                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Show / hide field based on text in another field

    Hi,
    I'm trying to make one of my fields reactive to what is the text generated in another field.
    At the moment I have this under calculate using custom javascript:
    var Mask = this.getField("Course").value;
    if(Mask == 'Swimming') this.getField("Code").display = display.visible;
    else this.getField("Code").display = display.hidden;
    Whereas Course is the field that is changing and Code is the one that will show/hide based on content of Course.
    Any help?

    Hi Everyone,
    After doing trials with simple calculations it still wasn't working and so I've figured out what the problem is - the document was being exported but with the data being pre-populated from an SQL database in which during the export it all happens at once, not a chain effect so when the export happens it was filling "Code" before "Course" had any info in it...
    The fix was basically having to create a different field in the SQL source itself for an independent field on the pdf form.

  • Using JavaScript to Hide/Show Items

    Hello
    Trying to use Javascript to check a List Item value.
    IF List Item value IS NULL THEN
    HIDE some other items
    ELSE
    SHOW some other Items
    I managed to locate some code to determine a NULL value.
    This works and I even can display a an alert message
    When I attempt to Hide the other Items, nothing happens
    Any Help on this matter - Urgently required for a Deadline
    Here is the code I am using :
    function show_InvestigatorData(){
    var lCheck = html_SelectValue('P1000_INVESTIGATOR_ID');
    // if Investigator populated, show the Investigator fields
    if(lCheck &&
    lCheck != '' &&
    lCheck != 'null' &&
    lCheck != '' &&
    lCheck != ' '){
    alert('this value is ' + lCheck);
    html_ShowItemRow ('P1000_INVESTIGATION_START_DATE');
    else {
    // otherwise hide the Investigator fields
    alert('this value is null');
    html_HideItemRow ('P1000_INVESTIGATION_START_DATE');
    Many Thanks in advance
    Ade

    Ade,
    Carl Backstrom has a great sample site with examples of what I believe you are trying to accomplish:
    http://apex.oracle.com/pls/otn/f?p=11933:5:661046971170606::NO:RP::
    From either the menu or the index, select Javascript and then "Show/Hide/Toggle Form Items".
    Hope you don't mind the plug Carl.
    MovingTarget

  • How to use a checkbox to toggle visibility of a Bar or Line on a Graph

    I came across a tutorial but can't seem to get it working properly.  Would someone be able to better explain how you can use checkboxes on/off to toggle the visibility of a line or bar on a graph?  I know you can do this directly within the graph's legend, but my legend is so large that it doesnt fit on my screen, so I need to take an alternative route.
    This is the tutorial i'm referencing:
    http://analysis-reporting.blogspot.com/2009/06/formatting-tricks-2.html
    Here is a screenshot of my dashboard. I want to code the checkbox to turn visibility on/off of the blue bar, the blue bar gets its values from Row 3 Colums B to F:
    http://img266.imageshack.us/img266/3838/testah.jpg
    Any help would be greatly appreciated!

    It appears that you're missing the logic for the check box.  There needs to be a cell whose value changes based on the check box's status (1 for checked, 0 for unchecked).  Do this choosing 'destination' in the check box's options and setting it to a cell in your spreadsheet.  The default values are 1 for checked, 0 for unchecked.  Then, you should have the values for your blue line in a table, but the actual line graph should be driven from an identical table that gets its information from the first table (confusing?).  The logic in the 2nd table should read:   =IF(Control Cell = 1, Actual Value, "")
    What this does is if the check box is checked, then the 2nd table will read the same as the first, and your values will appear.  However if the check box is unchecked, the 2nd table will have blank values ( "" ) and thus not register.
    Here are some images to help:
    This is the dashboard I created, notice the values are mapped to one area but the chart is driven by the other.
    http://img191.imageshack.us/i/basicr.png/
    This screen shows that the chart is driven from the 2nd set of data.
    http://img821.imageshack.us/i/chartdata.png/
    This screen shows the logic behind the 2nd table, the one that actually drives the chart.
    http://img836.imageshack.us/i/maplogica.png/
    This screen shows the check values for the checkbox.  Note that the destination for the first check box is cell B3.
    http://img683.imageshack.us/i/checkbox.png/
    This is the dashboard in action:
    http://img511.imageshack.us/i/inaction.png/
    Here is the XLF file so you can look at the logic and stuff.
    http://www.filedropper.com/demo1_2
    --Hope this helps.

  • Using a checkbox to display a value in another cell

    I want to use a checkbox in cell A1 to display in cell B1 either 0 or a value that's in cell C1. I've tried the IF function, but I keep getting a syntax error. Any ideas?

    How could you do the same thing but using only two cells?
    where the check box returns a specific value in the second.
    in this instance its for a staff registration sheet where a checkbox in (A) would return a set value in (B)
    i know this might sound simple to you guys in the know but i cant figure it out! I have been messing around trying things with the if function but still only shows me the red triangle (syntax error).
    A simple solution would be much appreciated.

  • How to get Hide/Show using details in advanced table

    Hi,
    I develeoped one custom page using advanced table region and i used detail from advanced table for getting hide/show functionaliy in one column in that table. It is showing hide/show properly..but if I click on Show it is not doing any action..pls let me need to write any code in CO for getting action..
    Thanks in advance,
    Hanimi......

    If you are using the same VO and you execute in on page load then it must populate all view attribute.
    Check in back end that is there any data in that VO attribute exists or not.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do I create a toggle (hide/show) button in Captivate 5?

    What is the best method to create a button that will hide / show a particular caption? I looked into using an advanced action, but have not been successful in indicating the correct variable / control statement to make it work.
    Anyone have a button with this purpose developed already? I would love to be able to copy/paste it into into my piece and just change the names to make it work?
    (How lovely that would be!!!:)
    Thanks in advance!
    -Kate (cgoebelx)

    Hello Lilybiri,
    Thank you for responding and yes, I believe this is exactly what I'm trying to accomplish!
    Since it is the first time I’ve ever had to use the Advanced Actions in Captivate before, I’m having an issue re-creating the screen shots you sent me verbatim. Here is how far I was able to get before I noticed that the v_visib “if” statement is not “selectable” in the “else” piece of the statement.
    Do I need to “save” the “if expression” before I’m able to select it as a variable in the “else section”?
    Thank you for all of you assistance, it is MUCH appreciated!
    Sincerely,
    Kate (cgoebelx)

  • How to keep display as Show when using Hide Show region with pagination?

    We are trying to use a 'Hide Show' region with pagination. The problem is that if you 'Show' (ie expand) the region and then hit the link for the next page, the next page displays Hidden (ie collapsed). We want to keep the page display as 'show' when you move to the next set of records.
    There is a fix in this forum for this issue in version 2.2 (Application Express) but we are on 2.0.0.00.49 (HTML DB). Does anyone know of a similar fix for HTML DB 2?
    Ver 2.2 fix is at:
    http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STICKY
    Thanks.
    David.

    Thanks for your reply.
    Running the application install script via SQL Plus using FLOWS_020000 produces result:
    NOT COMPATIBLE (Your export may contain calls not supported by your HTMLDB version.)
    The wwv_flow_api package routines that are not available in our version appear to be:
    create_or_remove_file
    create_install
    create_install_script
    Is there any way to handle these calls in other ways?
    Thanks
    David.

  • OS 10.10 how to hide/show a folder with a password using terminal

    In Yosemite 10.10.2 Terminal Can you please tell me how to hide/show with a password then show again on already existing folder created on a system drive and also an external drive. Please provide the path text to folder name "wbfiles". Thank you Winwoodb

    You can drag it from one place on a drive to another.  If you are moving it from one drive to another then it copies it.  If you are moving it on the same drive and are getting that message then not being able to move the folder is the least of your problems.  Free up space immediately because your computer is about to crash and probably lose files.  Then you'll have lots of space.

  • External topics using Hide/Show button

    I need to be able to add a Hide/Show button for external topics - i.e. topics that are not part of the RH project, but rather linked to from the TOC using http://
    Thanks in advance

    Hi there
    I'm unclear on what you are wanting. Do you mean that you have perhaps a link to Google, and somehow you need to cause a Hide / Show button to appear on the Google page?
    I'm not sure that's even possible.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

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

  • Disable hide/show of tab bar

    Most of the sample applications use a tab bar at the bottom to switch between features. This tab bar usually has a little blue button to hide and show the tab bar. Examples are the DeviceDemo and DvtGalery. For me, this feel not very iOS like and I don't want to show this button to hide/show the tab bar. For example: https://docs.google.com/open?id=0B0EvDYuyTjZzdGh3YS1YaWZrdEE
    Other sample apps, like LifeCycle do not show this button but I can't see what the difference is at design time to disable this feature. For example: https://docs.google.com/open?id=0B0EvDYuyTjZzdWNXLXJ6SVRzaDg
    Does anyone know how I can disable the feature of showing/hiding the tab bar?

    Never mind. Already found it. It's in the adfmf-application.xml which can be found in the Application Resources > Descriptors > ADF META-INF. That has a checkbox to show the navigation bar toggle button, or in XML:
    <adfmf:navigation>
        <adfmf:navigationBar displayHideShowNavigationBarControl="false"/>
    </adfmf:navigation>

Maybe you are looking for

  • Using a dynamic lookup table

    Hi, Simple question for the ODI guru's.. for an interface that we use, there is a requirement to dynamically look-up value's in a lookup table and then use these value's from the lookup table to write to a target table. This instead of hard coding st

  • Purchase requsition creation to be stoped in case of Third party

    Hi All, I have a requirement that in case of third party order the Purchase Requisition should Not be created if the order has a header level Delivery block. How to fulfill this requirement? Thanks & Regards, Amrish Purohit

  • Multipart mp = (Multipart) p.getContent() throws java.lang.ClassCastExcept

    I'm getting the following exception: 23:53:05,542 ERROR [BouncedMailJob] Exception javax.mail.internet.MimeMultipart java.lang.ClassCastException: javax.mail.internet.MimeMultipart         at com.imc.quartz.jobs.BouncedMailJob.dumpPart(BouncedMailJob

  • Adobe Reader installer fails

    Adobe Reader installer fails to install. Task Manager shows it's running, but nothing happens. Can't run it again because error message says a copy is already running. Help!

  • No sound when iTunes continues to play

    06-May-2007 08:07 AM Erin Dalzell: I have a Summer 2001 iMac with 768M of RAM running OSX 10.4.9 with all the updates applied. I have an Airport Express with FW 6.3 (the latest). When I play the music through two outputs (local iMac speakers and APX