Hide & visible using the same button.

Hi, I want to add the button to my pdf form, which should make this push button is. If I click on this button, bellows must hide the data of 4 fields. If I click again the same button until the hidden data should visible. So how can do that. even java script is not serious... pls help me. Thank you very much..

4 fields

Text Field0.1.1

Text Field0.1.2

Text Field0.1.3.1

Text Field0.1.3.2

Yes. The display of the field has 4 possible values.

We could test each field and asjust the display of the found value property.

var cField = "Field0.1.1 text"; name of the field to be addressed;

oField = this.getField (cField) var; get the field object;
if(oField == null) {}
App.Alert ("error to the field-" "+ cField +" \ "", 0, 0);
} else {}
if(oField.Display == Display.visible) {}
change the visible display to hidden;
oField.display = display.hidden;
} else {}
set up any visible display;
oField.display = display.visible;
} / / end of display property;
} / / end of the object field.

.

var cField = "Field0.1.1 text"; name of the field to be addressed;

oField = this.getField (cField) var; get the field object;
if(oField == null) {}
App.Alert ("error to the field-" "+ cField +" \ "", 0, 0);
} else {}
if(oField.Display == Display.visible) {}
change the visible display to hidden;
oField.display = display.hidden;
} else {}
set up any visible display;
oField.display = display.visible;
} / / end of display property;
} / / end of the object field.

.

You can then use the above code for each field, write a loop to change the field name of the field. You can even write a function to toggle the display between visible and hidden property.

function GetField (cField) {}
Returns the field object for the name cField or null;
oField = this.getField (cField) var; get the field object;
if(oField == null) {}
App.Alert ("error to the field-" "+ cField +" \ "", 0, 0);
}
return oField;
} / / end GetField funciton

function ToogleDisplay (cField) {}
Tooble the show field between hidden and display;
var oField = GetField (cField); Retrieve the field object;
If (oField! = null) {}
if(oField.Display == Display.visible) {}
change the visible display to hidden;
oField.display = display.hidden;
} else {}
set up any visible display;
oField.display = display.visible;
} / / end of property of display field;
} / / end of the field object not null;
Returns true;
} / / end of ToggleDisplay function;

ToogleDisplay ("Field0.1.1 text"); Toogle a field;
ToogleDisplay ("Field0.1.1 text"); Toogle a field;
ToogleDisplay ("Field0.1.3.1 text"); Toogle a field;
ToogleDisplay ("Field0.1.3.2 text"); Toogle a field;

The above code will trap field name erors and advise of the number and continues to run.

Tags: Acrobat

Similar Questions

  • Using the same control appeal return of different tabs

    Hello

    I am fairly new to this bare with me for a second...

    I have a situation were I use several tabs with the same exact command buttons in each of them.  Given that the buttons have the same function I want to use the same reminder.  I understand that each TAB is considered as an expert group and has its own Panel of handle.

    My problem is I want the call to make the difference between the button OK of TAB1 and TAB2.  The handle Panel sent back, the call is (from what I can tell) the Panel handle for the tab which is great, but it doesn't have a constant right having at it in the header file.  How sure that TAB1 always has the Panel handle 2 and TAB2 has always handle Panel 3, etc...

    Example: When I click on OK in TAB1 handle Panel sent to the btnOK is = 2 recall.  If I click OK in TAB2 is the handful of Panel = 3.  I want to move to the OK button, but do not want to use hard coded in full.

    int CVICALLBACK btnOK (int command face, int, int event, void * callbackData, int eventData1, int eventData2)

    {

    switch (event)

    {

    case EVENT_COMMIT:

    switch () {}

    case 2:<----I don't="" want="" a="" number="" here="" but="" a="">

    "do this."

    case 3:

    "do this."

    };

    }

    return 0;

    }

    The easy solution would be to have a reminder for each of the buttons.  If it's the only way to go if it's what I'll do, but I am interested in what you think.

    Thank you!

    Hello

    I see at least three ways to get what you want.

    Solution A: depend on constant tab page name (as you can get it back by giving the handle from Panel)

    In the callback, insert this code:

    name char [64];

    GetPanelAttribute (name of Panel, ATTR_CONSTANT_NAME),
    If (! strcmp (name, PAGE1)) {}

    Code for the first page of the tab

    }

    Else if (! strcmp (name, PAGE2)) {}

    Code for the second tab page

    }

    ... code additional pages

    Solution B: based on the attributes of the tab

    int parent, index;

    GetPanelAttribute (Panel, ATT_PANEL_PARENT, & parent);

    GetActiveTabPage (parent, PANEL_TAB, &index);)

    switch (index) {}

    case 0:

    Code for the first page of the tab

    break;

    case 1:

    Code for the second tab page

    break;

    ... Add the code to additional pages

    }

    Solution c: use the callbackData for buttons

    This solution requires code in two different program sections

    * During the loading of the Panel with the tab control

    int pnlH;

    GetPanelHandleFromTabPage (Panel, PANEL_TAB, 0, &pnlH);)

    SetCtrlAttribute (pnlH, PAGE1_BUTTON, ATTR_CALLBACK_DATA, (void *) 1);

    GetPanelHandleFromTabPage (Panel, PANEL_TAB, 1, &pnlH);)

    SetCtrlAttribute (pnlH, PAGE2_BUTTON, ATTR_CALLBACK_DATA, (void *) 2);

    ... and so on

    * In the recall button

    switch (callbackData (int)) {}

    case 1:

    Code for the first page of the tab

    break;

    case 2:

    Code for the second tab page

    break;

    ... Add the code to additional pages

    }

  • How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can?

    Switch issues. Help, please.

    How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can? We already checked the firewall as a question, that it was not, and now, we are puzzled.

    Well, I know that the issue is long-term... believe me, it's a long, but as they say, the devil is in the details. Anywho, the question is, my grandfather has a HP laptop, which for two years has been able to run through a Linksys switch to his router and connect its printers to his laptop. About two months ago it suddenly doesn't work like that. Now, it works fine if it plugs directly into the router/Ethernet. My uncle suggested that the switch was bad, but after testing the same port, cable and all, the switch worked well for him. ' GRAMPS really needs this answered, but someone else, it is called can not understand and now I, in turn, ask you all for what you can offer. Here are the ideas that we have already discredited.

    -Switch bad: as above, is that this particular laptop, even under identical conditions, the works of my uncle very well.
    -Bad NIC: debunked through the fact we connected to the computer directly to the router and it worked fine.
    -Bad configuration of the firewall: we have disabled the firewall (please do not notice, he wasn't the smartest idea, we already know) and even if she recorded the switch exists, the internet is always triggered when you are connected with the switch.

    Thanks in advance for any assistance that you can provide and Merry Christmas to you all.

    It would be useful to consult the results of the ipconfig/all command both when it is connected to the switch and when it is connected directly to the router.  In addition, what is the model of the switch?

    To save the manual copy and the new hits of the ipconfig/all command output-

    First connect through switch.
    Open a command prompt window (start > run > cmd > OK)
    Type the following lines in the black command prompt window and press ENTER after each line

    echo "Connected via the button" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".

    Now connect directly to the router, type the following lines in the command prompt window and press ENTER after each line

    echo "Connected to the router" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".
    Notepad '% UserProfile%\Desktop\ipinfo.txt '.
    output

    Copy the contents of the Notepad window in your response (if you use the laptop when it is connected directly to the router) or close the Notepad window, and then copy ipinfo.txt of the laptop to the Gramps in a USB FlashDrive you can connect to any computer allows you to answer.

    You can delete ipinfo.txt on the desktop when you are finished.

  • When I press the keys on my laptop, it makes a noise? How to stop clicks. It also stops when I touch the same button twice.

    How can I get the keyboard of my Toshiba laptop to stop clicking when I press the keys.  There is also a break when I button the same button twice.  Any suggestions?

    It could be accessibility features:

    1. Press + u to open the utilities to facilitate access.
    2. Scroll down and click on "make the keyboard easier to use".
    3. Uncheck all the boxes
  • Cannot use the back button on the Web PDF pages

    I Windows 7, Internet Explorer (IE) 11 and Adobe Reader DC, all day. Whenever I go to a PDF Web page by clicking on a link in the Google search results and then want to return to the search results page by clicking the back button on the browser, it will not go back. Page PDF just charging once again. This does not occur when I use my browser Google Chrome, when I use IE. It happens with every page PDF that I access from the Google search on Internet Explorer. What can I do to be able to use the back button on the Web PDF page?

    Google made a diversion when you click on a search result. You can see if you right click on a such result and select Copy link location, and then paste. Is not the real address - the web site, but a link to a page of Google.com. So when you click on back after going to her, you can end up on the same redirect page, which automatically will then take you to its destination... Some browsers can handle this better than others, but it is not related to the PDF file you open.

  • loading html document stored on the local hard drive using the 'flash' button

    Hello! I use adobe cs 5.5 flash (action script 3), and I need to load an html document into my hard drive using the 'flash' button I tried navigateToURL (thanks kglad). Here is the code:

    quizstart_btn.addEventListener (MouseEvent.CLICK, arithmeticlesson);

    function arithmeticlesson(event:MouseEvent):void

    {

    navigateToURL (new URLRequest("file:///C:/quiz/truequiz.html)", "_blank");

    }

    But I want to play my flash file to the other computer. In order to access the truequiz.html, I'll make a folder named quiz to C:\.

    How can I load this html file to other computers without creating a folder to C:\? Sorry for the dumb questions. I'm new coding. Thanks in advance!

    Is there another html file that includes the swf file?  If so, it is in a different folder, then you need to adjust the path so that the swf file target html file as if it were in the same folder as the html page that incorporates.

    Are other than that, you getting any kind of error message from security to try to link to the page in this way?

    I really enjoyed my visit here.  We went in February, the coldest time of the year, and when I got my mother-in-law apologized for the cold, it was then that I was just there dripping with sweat.  Where I am now (upper NY) it is-10 degrees...  If here and there, I'd be a temperature controlled indoor environment.

  • How to use the same mask, stencil, etc for several layers? Photoshop equivalent of the masked group?

    Hi I spent over half an hour for search manual, forums and the Internet and still can't find the answer. Help, please!

    For example, in a model with 5 or more layers, I want to use the same mask or stencil or what can hide layers 2,3 and 4 but areas layer 5 and all other possible layers below should not be affected.

    1. Before dialing the layers that you want to hide and apply a matte for the demo using the mask. Think to the Dial as an equivalent to the creation of a layer group.
    2. Use the effect on each layer you want to hide. It's easier to do if you apply mast set once and then create an animation preset to apply to the other layers. Just get mast set to do what you want it to do on the first layer, select Set Matte in ECW or in the timeline panel, and then go to the Animation > Save animation preset. Select then all other layers you want to apply the set matte to apply the preset.
    3. Put the mask at the bottom of the layers that you want to hide and turn on the switch to preserve transparency, then this group in composition with other layers of nesting.

    Here's another tip. You can set a custom color for all the layers you want to use the mast, then use the custom color for a group selection. This can make things easier down the line.

  • Use the same script in different areas?

    Is it possible to use the same script in different areas?

    I had several scripts that will validate and modify the entries in the user on different areas. Since they do exactly the same thing, is it not possible to just get out the 'real' on a field script and refer to other fields to this script?

    Of course - we have a fragment of 'commonScriptObjects.xdp' that we all have

    our common methods of javascript in.  Then we add to the form and hide it.

    then use the following reference to point to the script object:

    GET A HANDLE TO THE SCRIPT OBJECT

    var commonScript =

    xfa.resolveNode ("commonScriptObjectsFrag.fragmentScript");

    CALL A JAVASCRIPT METHOD IN THE SCRIPT OBJECT

    commonScript.setupSearch ();

    Here's something else you can do to validate our mandatory fields.  We spend in

    the real to validate field and the name of the field as a text string:

    If (! commonScript.validateRequired (mainContentSubform.customerName,)

    False return 'Customer'));

    and the validateRequired method, which is in our commonScriptObject xdp

    file, looks like this:

    validate required fields

    function validateRequired (oField, fieldName) {}

    Console.println ("enter validateRequired");

    var commonScript =

    xfa.resolveNode ("commonScriptObjectsFrag.fragmentScript");

    If (commonScript.isNullValue (oField.rawValue))

    {

    xfa.host.messageBox ("Please fill out the '" + fieldName +)

    ("' field.", "Error", 3);

    xfa.host.setFocus (oField);

    Returns false;

    }

    Returns true;

    }

    Hope that helps,

    Elaine

    ocen12 [email protected]>

    29/07/2009 09:26

    Please respond to the

    [email protected]

    TO

    Amal [email protected]Schmitz >

    CC

    Object

    Use the same script in different areas?

    Is it possible to use the same script in different areas?

    I had several scripts that will validate and modify the entries in the user on

    different areas. Since they all do exactly the same thing, is not

    possible to just get out the 'real' on a field script and refer to the

    other areas of this script?

  • How to use the same user interface project for different HumanTask in GR 11, 1 material BPM

    When I set a user interaction activity in my process of material Oracle BPM 11 GR 1 and associate a human task with it. It generates a new project to contain all my forms. Anyone know if it is possible to use the same project for the different human task?

    After generating the UI for your first human task project, you can click with the right button on the project in JDeveloper and select 'New', click on the tab "Technologies all", then "JSF'-> ' ADF task based on human task workflow of." Then find the file your BPMN/composite project .task.

  • Can I use the same disc hard ext I used for El Capitan Yosemite without losing my data?

    Can I use the same disc hard ext I used for El Capitan Yosemite without losing my data?

    Yes. You should not lose any data, but always have a backup. In this case, you have your internal drive as a backup.

  • Hi all OneHow can you buy an IBook UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing.

    Hello world

    How can buy you an IBook of UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing

    There is no solution, if it is not available in your area, you can't buy it.

  • How to separate 2 IPADs using the same Apple ID

    Problem: I have 2 iPad (IPAD 2/IPAD Air) using the same Apple ID.  To maximize the storage capacity on two IPADs, how can we separate the two so that each IPAD will show its max 16 GB storage?   I have to reconfigure the old IPAD back to factory setting?  I create an AppleID separated for the IPAD 2?  Your comments are greatly appreciated

    I'm not sure I understand what you're talking about. If you have two 16 GB iPads, they have only about 13 GB of storage available out of the box. Using the same Apple ID on both devices does not affect the amount of space you are using, if you sync the same content for both and in everything you turned on automatic downloads and use iCloud photo library on both devices.

    -What are you trying to achieve? What exactly do you do?

  • using the same search terms on ebay, getting different results on firefox exploer

    using the same words to search on ebay for internet explorer, I get results more when I use ebay on FireFox > is cutting some of the results when using Firefox

    It is always possible that eBay is to differentiate between browsers and gives different results, based on previous visits.
    You can try to delete cookies in two browsers to see if it has an impact.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".
  • Win7 with FF 31, smart phone 4.2 with FF letest ver. using the same account with 1 email. But the phone is not getting any collar, Bokmr, etc.

    Brother.
    We use win7 with Mozila 31, 4.2 with Mozila Android smart phone latest google app store on 04/10/0214. Using the same account with the same email. But the phone does not get any new information of win7 with Mozila 31. PL z give useful information.

    Hi w3ur_team,
    Thank you for your question. I understand that there are two features that are documented in the sync account. However the Android is not synchronized.

    There are two places we can check:

    1. In the Android settings, under accounts is the Firefox Sync or Firefox Sync (discouraged) joint account?
    2. Credentials work on accounts.firefox.com on the mobile device and are there any error messages in the synchronization of the settings menu > sync?

    See also Firefox Sync troubleshooting and tips for more troubleshooting steps.

  • Can I use the same profile of TB on my laptop and PC via Onedrive or iCloud? If so, how?

    I know that I can move my TB profile location and create new ones using Profile Manager. I did it using my account Onedrive and TB works very well. It would be very useful to be able to use the same profile Onedrive of two PC, but is it possible and how can I do? Thank you very much.

    It is possible, but prone to failure.
    You can not at the same time share a profile
    The network speed is essential. Portable Thunderbird and a USB would be a better solution.

Maybe you are looking for