run event.target from a page 1 button to run on page 4 of the form

Hello

I currently have a button on page four of the form which takes place this javascript.

If (event.target.value! = 'Off') {}

this.getField("strike5").display = display.visible;

} else {}

this.getField("strike5").display = display.hidden;

}

If (event.target.value! = 'Off') {}

this.getField("strike6").display = display.visible;

} else {}

this.getField("strike6").display = display.hidden;

}

//

If (event.target.value! = 'Off') {}

this.getField("strike7").display = display.hidden;

} else {}

this.getField("strike7").display = display.visible;

}

If (event.target.value! = 'Off') {}

this.getField("strike8").display = display.hidden;

} else {}

this.getField("strike8").display = display.visible;

}

I wish now to turn by a button on page 0 to do the same on page four.

Is this possible?

I hope so... See you soon

I would create a document-level function to adjust the display of the fields when the box of cehck is not equal to 'Off '.

function SetStrikeDisplay (cValue)
{
Set the fields to display when the value is 'Off' to the default value;
this.getField("strike5").display = display.hidden;
this.getField("strike6").display = display.hidden;
this.getField("strike7").display = display.visible;
this.getField("strike8").display = display.visible;
If (cValue! = "Off")
{
this.getField("strike5").display = display.visible;
this.getField("strike6").display = display.visible;
this.getField("strike7").display = display.hidden;
this.getField("strike8").display = display.hidden;
}
return;
} / / end of function SetStrikeDisplay;

For each field, you want this script to run to use the following code:

SetStrikeDisplay (event.target.value);

Tags: Acrobat

Similar Questions

  • my pc runs research and fills in the forms she self... who runs it?

    My pc runs research and fills in the forms by itself. I did al worm and Trojan research...

    Hi geddus,

    1. what research program do you use?

    2. what security software is installed on your computer?

    (a) I recommend you run a virus scan online from the link given below and check if the problem persists.

    Microsoft safety scanner

    Also, make sure that you have the latest update of the software antivirus installed on your computer, so that it works correctly.

    (b) you can also download & run Microsoft Security Essentials on your computer.

    Hope the helps of information.
    Please post back and we do know.

  • The appearance has changed, and even the Start button is no longer a circle but the former rectangle that says start after the installation of an update.

    I recently installed an update of Windows for Vista.  The appearance has changed and even the Start button is no longer a circle but the former rectangle that says start.  How can I get the old look back with on the uninstallation of the update?  Thank you

    Original title: updates

    Hello

    It seems that the update was for graphics, as it changed the appearance

    If the update is the problem, you will need to remove it or download and reinstall the graphics driver from your computer or the manufacturer of the graphical Web site map.

    _________________________________________

    Read this information about updates:

    Microsoft gives sometimes you updates for the 3rd party hardware: graphics, network cards, etc.

    You should only get the latest drivers for them to real hardware manufacturer's website, as Microsoft normally does nor those have the most recent drivers available as Microsoft relies of the 3rd party hardware Manufactuer to provide.

    But unfortunately, the only way to know which is the update of the problem is to install them one by one, until you find the 'wrong' for your installation.

    You can do a system restore to get back until it has been installed (which is NOT the best way to remove an update) or follow this method:

    'Remove an update'

    http://Windows.Microsoft.com/en-us/Windows-Vista/remove-an-update

    When you have found the issue of update of the list of updates which is presented > then right click on the update problem > select Hide update > and it will not be available to you once again

    "How to hide or show an update of Windows Vista"

    http://www.Vistax64.com/tutorials/72491-Windows-Update.html

    "How to hide or restore the updates of Windows hidden in Windows 7 and Windows 8"

    http://www.SevenForums.com/tutorials/24376-Windows-Update-hide-restore-hidden-updates.html

    _____________________________________________

    Here's how to chanage update settings, if you think it is necessary to:

    "Understanding Windows Update and Extras in Windows Vista and Windows 7.

    http://www.bleepingcomputer.com/tutorials/Windows-Vista-updates-and-extras/

    Or the other of these two update settings will give you the chance to see what you want to install through Windows updates;

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

    But remember you normally only have problems with hardware 3rd party drivers. Other updates are to improve the Performance and security of your system

    See you soon.

  • event.target.content.loaderInfo gives error if I'm to access images of the external field (SecurityErr

    I'm working on OSMF-based player. I added the image of the logo at the top right of my player. Now, I want to open a link when you click on the logo image.

    I wrote a script code Action in onMouse during the event

    CODE:

    private void onMainClick(event:MouseEvent):void {}

    If (Event.Target.hasOwnProperty ('Content'))

    {

    var info: LoaderInfo = event.target.content.loaderInfo;

    var imageUrl:String = configuration. LogoImage; Logo url to view the player

    imageUrl = imageUrl.split("/").splice(1).join("/"); "

    If (info. URL. Search (ImageUrl) > = 0)

    {

    var url: String = configuration. LogoLink; Logo link to open it in a new tab

    var request: URLRequest = new URLRequest (url);

    Try

    {

    navigateToURL (request, "_blank");

    }

    catch(Error:Error)

    {

    trace ("Error occurred!");

    }

    }

    }

    }

    When I give the url of the Logo of the same domain, it works very well (given the url will open in a new tab). Problem occure when I access the image of the external domain. A field that doesn't support request to my domain.

    More information: the Logo image appears correctly on the upper right of my player. On clcik logo url, I am getting error below. I am providing the url of the logo of my config file

    SecurityError: Error #2123: security sandbox violation: Loader.content: http://10.1.0.126/release/XYZPlayer.swf Can't access to http://www.esnipe.com/shared/help_icon.gif . Access granted to no political file.

    to flash. display::Loader / get content())

    to StrobeMediaPlayback / onMainClick)

    Please can someone help me out of this error.

    use:

    var info: LoaderInfo = event.target.contentLoaderInfo;

  • No sound from web pages that require the use of flash player

    flash drives

    All of a sudden I can't sound to web pages that require the use of flash drives: I use Vista Home premium

    All of a sudden I can't sound to web pages that require the use of flash drives: I use Vista Home premium

    ===============================
    I don't know if it applies to your question, but some
    video on the net sites have volume control
    You can set.

    For example... on YouTube... move your mouse
    pointeur pointer on the "speaker" icon, then drag to adjust
    volume.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Required radio buttons - Possible Cause of unable to submit the form?

    I'm missing something about radio buttons.  Create a form of 9 page using the layout fluid and with the previous help from this forum, am being tested now.  It's a long questionnaire and questions are radio buttons, some are checkboxes.  For radio buttons, they are a Yes/No, each set contains 2 buttons and I use the question numbers under the name of link, for example the Question a 17, 4 sets of boxes for Yes/No to sub questions A, B, C and D, thus binding names Q17A, Q17B, etc..

    I've done every yes / no game needed, thought I want their answer Yes or no for part A, B, C and D, each.  By making the final test, when I click on send, he said to the less mandatory field was empty export.  I answered each question if necessary or not, thinking I can I have had a few errors in the mandatory fields, always got the error, then divided the form on 8 separate test documents, each containing only a single page and page 9 to submit in order to reduce it to which pages/fields were the cause of the problem.  On pages that have no radio buttons, only the required text responses, I don't have the message.  Only on pages with the radio buttons is I got the message "at least a necessary field was empty", which brings me to ask me what Miss me about the production of the required radio buttons.  In the Help menu of option buttons, but not this aspect, I found a lot, and maybe I went beside her and would appreciate any help, thanks.

    Hello

    Radio buttons can sometimes give wrong when it is set to required: see here Re: required Radio button red color in a dynamic form

    One thing to make sure is each Yes/No is a group of radio exclusion and the exclusion of the radio has the required value:

    Good luck

    Niall

  • When my form is clicked on a box/radio button, a predefined text appears elsewhere in the form.  How can I do this?

    I have created a form for a hospital.  I have a form with Yes/No boxes.  I want the results of these checkboxes to trigger the display of text in the text boxes on the same document.  For example, if it is said: "pain in the neck?  O N"and they click on 'Y', I want a message to be entered in a 'Instructions' box on the form.  I made shape, I just need direction on the fi/then for all clicks.  that is, «if they click YES on this, type THIS in this other area...» "etc.

    Use as the mouse to the top of the script for the checkbox control:

    if (event.target.value!="No") {  //If checkbox is ticked
    this.getField("Textbox1").value = "Instructions for Neck Pain Go Here";  //Replace Textbox1 with the name of your field
    }
    else this.getField("Textbox1").value = "";   //Clear the text field if checkbox is not ticked
    
  • Dynamically, use page number in the form on the pages with their field?

    I have a form with pages having engineered.  JS for spawning exception works very well.  However, a text field on model is driving me crazy.  I wish that this field ("CaseNum") to dynamically display the page number, given that the page number also matches the file number.  On templage ("getcase"), I can calculate the value for CaseNum using custom script calc (event.value = this. PageNum).  But it does not work because each page having spawned Gets the same value (that is to say, what is the latest issue of the page generated). I also tried the JS below, using P0.getcase.CaseNum as the field on the model in which I wish the page number/box number to display:

    var this.pageNum = opaque;

    this.getField ('P' + opaque + ".getcase" + ".") CaseNum') .value = opaque;

    But it does not either, because the page automatically generated field gets the prefix of the P + .getcase page number appended to the name of the field.  Is it possible to number of dynamic page used in a form on the pages with their field?  If so, how? Note that while I try to use a dynamic file on pages with their number, it presents the same problem as dynamically displaying pages with their page numbers.  I'm a JS newbie, so any help appreciated.  I searched high and low on the web and in the forums and couldn't find the answer.  THX.

    http://forums.Adobe.com/thread/1160899

    @

    7George Johnson,.

    February 28, 2013 09:42 in reply to natelfo

    Is that what you mean?

    See also:

    http://www.PlanetPDF.com/developer/article.asp?contentid=6466

    d-template-pages-using-JavaScript-functions/ http://www.wordwizardsinc.com/blog/Finding-the-FieldName-prefix-on-Acrobat-acroform-spawne

  • Search for "hello world" script for the passage of form Adobe of page 1 of the form to the page-2-submit

    I want to collect the data in a simple form using multiline text and form fields in the drop-down list and sur-soumettre, display data from the form on page 2 of the PDF document as restructured text.

    I'm not trying to perform calculations or logical decisions with the form data.  That the displacement of the shape for the text displayed on the next page of the PDF file.

    I looked up and down but can't seem to find anything.

    Anyone able to point me in the right direction?

    Thank you.

    For what you are trying to do, it does not appear that the JavaScript code that gave you George is necessary. The script that he gave is rather simple with the added sapce between each item, but with the operator are simplified which each string and space at the end of the previous sValues (a type of operator, which is also in C / C++).

    However, at the point. What you want you can work to simply add a text field for each item and you want to display with the formatting you want (and), then just use a similar something like JavaScript

    getField("Text4").value = getField("Text1").valueAsString;

    to produce the field. Repeat this step for each of the fields to display. I don't know George or someone else will correct the script if I messed it up.

  • All pages load in the form of text with no graphics. Does not affect other browsers.

    Hello

    If this sounds like a rehearsal, he ' because I hit the button "Add automatically" and have no idea of what has past. Absolutely zero return.

    In any case, after upgrading to Firefox 24, all my pages load as text docs with no graphics! The exceptions are Gmail a Mozzilla start page (and a site I want to by clicking on an e-mail link. All pages on this site loaded normal / with graphics. I've switched back to v.23 and now it is the same way!

    I can't work like this. Help, please!

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot.

  • How to display Page also in the form of columns of report items?

    It seems that as soon as I do a column report a page element, and then disappears in the columns on the report. I want that page elements considered as well report columns. Is this possible in discoverer?

    Create a calculated item based on the item record. This effectively shows the column twice, once as part of page and then as a column.

  • Help! JavaScript works not when the object is moved from one page to the other!

    Hi all:

    I am new to Adobe Livecycle Designer (version 8.0). I created an interactive pdf form of 3 pages with many objects (text fields, radio buttons, drop-down lists, etc.), our company wants to quickly start to use.

    I'm having trouble with some of my Javascript does not not with some of my items on page 2 of the form. Specifically, there is a drop down menu to "Country" on page 2 of my form. When the user selects, for example, 'United States' in the list, I have the Javascript code that is supposed to change the 'currency' list drop-down to "Dollars" rawValue accordingly (on the change event).

    I think that my Javascript syntax is correct, but I am not sure. Here's my simple Javascript associated with the "Country" drop-down list (Note: rawValue 80 = 'United States' and 105 rawValue = "US $"):

    -


    Form1. Page1.cmbContactInfoCountry::change :-(JavaScript, client).


    If (this.rawValue == 80) {}

    cmbCurrency.rawValue = 105;

    }

    It sounds pretty simple and it WORKS when my "Country" drop-down list is moved to page 1 of the form, but it WON'T WORK when I move the combo box "Country" return to page 2 of the form (i.e. where it belongs).

    Anyone has suggestions or solutions? I spent probably 6-8 hours of racking my brain trying to figure out why it works when on a single page, but it does not work when to move to another page. I guess I can have corrupted something OR that I not address fully the proper name of the object?

    Help, please!

    Frustrated and helpless, near Chicago.

    Taylor T

    Yes, it's a quirk of... in the drop-down lists when you select an item in the DOF it is not committed until you exit the field, unless you do the following:

    If (this.boundItem (xfa.event.newText) == 1) {}

    cmbCurrency.rawValue = 1;

    }

    ElseIf (this.boundItem (xfa.event.newText) == 2) {}

    cmbCurrency.rawValue = 2;

    }

    The xfa.resolveNode stuff was not necessary that both objects are of the same subform, and as such can 'see' each other.

    Think like a folder structure subforms - elements can see what is in their own folder but will say where to find things in other folders. If cmbCountry was subform1 and cmbCurrency was so in subform2 that rawValue above lines would look like:

    subform2.cmbCurrency.RawValue = 1;

    It's a good idea to name all your objects, subforms, etc. it is to work with script is much easier - so you won't have to deal with things like these pieces of xfa.resolveNode you had before (as well). He ones because you have more than one subform called "subform", the number of hooks is the Instance number (when you have several of the same object) if the program has to differentiate between the various "subform".

    The number of instance come in handy, but for things like the rows of the table and so on when you need to make calculations.

  • The file created from web page margins

    Acrobat X Pro

    When this version of Acrobat creates a file for conversion of a web page, the margins are all false--they are too close to the edge of the page - and there seems to be no way to set preferences for what should be the margins, or the size of the page.

    I've used Acrobat since version 4 and don't remember not thios going on before.  This is particularly annoying when you try to mount a collection of pages more than a webpage, as the Append function ignores the margins for the previous pages.  I have to print every page in my browser PDF format, save each individual file and then merge them into a single file.

    In creating a PDF from Web Page dialog, click the settings button. Click the Layout tab. You can change the margins and the size of the page here.

  • How to use event.target.name in AS2?

    Thanks kglad, I could see how event.target.name in AS3 could make a button to load a movieclip with the same name.

    I do the same thing now in AS2, but don't know what to write instead of event.target.name.

    And so, at the present time, each button push information in a table and then a function that uses to decide what movieclip to tie to a holder after that he faded once and then fades new...

    BEGINNING OF THE GALLERY OF IMAGES *.
    Add images to the holder
    imgholder.attachMovie ("img0", "image0_0", 1).

    Table
    var nextLoad = ['img0'];

    Listeners of BTN
    img5.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img5"); btnClick()} / / written on 1 line
    img4.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img4"); btnClick()}
    img3.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img3"); btnClick()}
    img2.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img2"); btnClick()}
    img1.onRelease = function() {}
    nextLoad.pop ();
    nextLoad.push ("img1");
    btnClick()
    }
    img0.onRelease = function() {}
    nextLoad.pop ();
    nextLoad.push ("img0");
    btnClick()
    }


    The function of btn
    function btnClick() {}
    trace ('click');
    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true ");
    myImgTween.onMotionFinished = function() {}
    fadeOutImg();
    }
    }

    The function part of II btn
    function fadeOutImg() {}
    trace ("fadeOutImg");
    imgholder.attachMovie (nextLoad, "image1_1", 1);
    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true ");
    }

    I know I should be able to push the button name in the table, but I meet to use a string... I don't know that my code is heavy! But it works. I tried to push as the name of the button but it end by including the reference to full step.
    Is there a cleaner way to do this using event.target.name?
    Thanks for the research!

    There is no event.target in AS2. However since AS2 has no way to remember the scope object where the target object, you can use this to your advantage to get the name of the target using the command 'that' in the function when you use the format above "mc.onPress = myfunc". FYI, the delegate popular workaround solution, enabled when you called 'this' in the function, you can retrieve the scope object where the target instance. So without her help, "this" will return the name of the target object. In any case, this is the code that you can use:

    imgholder.attachMovie("img0","image0_0",1);

    var nextLoad = ['img0'];

    img5.onRelease = onImgRelease;

    img4.onRelease = onImgRelease;

    img3.onRelease = onImgRelease;

    img2.onRelease = onImgRelease;

    img1.onRelease = onImgRelease;

    img0.onRelease = onImgRelease;

    function onImgRelease (): Void {}

    nextLoad.pop ();

    nextLoad.push (this._name);

    btnClick();

    }

    The function of btn

    function btnClick() {}

    trace ("Click");

    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true ");

    myImgTween.onMotionFinished = function() {}

    fadeOutImg();

    }

    }

    The function part of II btn

    function fadeOutImg() {}

    trace ("fadeOutImg");

    imgholder.attachMovie(nextLoad,"image1_1",1);

    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true ");

    }

  • Helps the event.target.name

    I'm very green with actionscript and coding in general so please forgive me if I ask you something that sounds super easy.

    Is it possible to take the "event.target.name" value, which in my case would be something like 'SW5005_mc' and change this value.

    I use this value now to tell another clip of gotoAndStop (event.target.name); I have identical to the event.target.name marked images.

    I would like to take the value of event.target.name for example "SW5005_mc" and delete the "_mc" and put a dash between the 'SW' and the '5005.

    for "SW-5005" and then I'd spend it in a text field.

    I don't really know where to start, or if this is possible.

    Thanks for any help or suggestion,

    Chris

    You can use String.indexOf to find the _ and just get everything entered, then use substr and substring for the rest:

    var a: String = event.target.name;
    var b:String = a.substring (0, a.indexOf ("_")); get the front part of the _
    var c:String = b.substr (0.2) + "-" + b.substr (2); Insert a - between the first two characters and the rest
    trace (c);

    SW-5005

Maybe you are looking for