Have several scripts for a custom button

Can I run different scripts when you click on the same custom button based on the selection in a menu object drop down? The selection in the drop-down list determines what script runs.

For example: If the drop-down list selection is 'A' - sustom button executes A script

If the drop-down list Selectionin is 'B' - the same custom button runs only script B.

Note: Each script contains a small number of cases

How do I script that?

You must use an if... else statement.

If (list == 'A') {}

do things;

}

ElseIf (drop-down list == 'B') {}

do other things;

}

ElseIf (etc.) {}

do more things;

}

And you can nest if statements inside the other if statements.

Tags: Adobe LiveCycle

Similar Questions

  • script for movie clip buttons

    Hello

    I have several buttons in movieclip within a clip that is located on the main stage.

    I want to these link buttons to frames that are within another clip which is also on the main stage.

    That is to say. Stop onRollover framework background_mc 5

    onClick Stop frame background_mc 10

    When the button is onClick or onRollover it should just be in its default state on the stage

    Thanks in advance

    s1976h

    It goes on the same timeline that contains background_mc.

  • How is it possible to have several styles for one order

    Hello

    I have a CSS associated with my MXML file. Now, how can I connect all these things to my TextInput, for example by below, I can only assign police size, how do I connect all these styles at once to my TextInput


    < name mx:Label = 'User name' width = '80' x = '89' y = '80' text = "UserName" styleName = "p" >

    It's my external css file

    {.h1}
    font size: 24;
    }
    .p {}
    font size: 50;
    }
    .a {}
    text-decoration: underline;
    }
    {.a:hover}
    Color: #FF0000;
    }

    Thanks in advnace.

    Hello

    Try to combine your statements.

    {.newStyle}

    font size: 50;

       text-decoration: underline;
    }

  • How to add the script sequence to the column in the business component * I have this script for sequence * (CREATE SEQUENCE COL1 START WITH 1 INCREMENT OF 1 NOCACHE NOCYCLE ;)

    Hello

    Take a look at the link below, it gives different ways to use the sequence.

    Using the sequence of database in ADF - Souza Waslley Blog

    https://tompeez.WordPress.com/2011/09/02/using-Groovy-expression-to-set-a-primary-key-with-a-sequence-number/

    http://hasamali.blogspot.com.au/2011/04/ADF-BC-various-way-of-setting-sequence.html

    See you soon

    AJ

  • I have two script. one for indesign and another for photoshop. How can I combine the two scripts?


    Hi all

    I have a script for indd that convert a table selected user in JPG format (1276 px width, height varies). Second script photoshop asking to select jpg file and then check if the height in pixels is less than 1018 pixel, can he expand canvas size (height) to 1018 px.

    How can I combine the two script, tip, or how to start would be useful? The workflow must be:

    • the user select table in the indd document
    • export table in jpg format
    • script you will be asked to select the file table jpg or if it is possible to automate this would be awesome.
    • enlarge the height of the canvas to 1018 px

    Thank you

    Marie rosine

    PS: I have already read the Java script tool guide pdf but unable to understand

    Yes and the documentation is pretty self-explanatory.

    However, here is an excerpt:

    function callPhotoshop(file) {
       var bt = new BridgeTalk;
    
       bt.target = "photoshop";
    
       bt.body = "function main (){ return confirm('Am I in Photoshop?'); }; main();";
    
      bt.onResult = function(resObj)
      {
      var myResult = resObj.body;
      alert( myResult? "PS code was correctly executed" : "Something wrong happened" );
      }
    
       bt.send();
    }
    
    callPhotoshop();
    

    HTH,

    Loïc

    http://www.ozalto.com

  • Custom button that creates another object in its parent

    I have a function that creates an instance of a custom class that extends of button inside a BorderContainer using MyBorderContainer.addElement ().  It seems to work very well.  What I would like is for the custom button (which it will be several created) in order to create a panel inside the same BorderContainer.  This is the class for the custom button:

    [quote] / public class MySpecialButton extends button

    {

    private var NewPanel:Panel = new Panel();

    public void MySpecialButton()

    {

    this.setStyle ("skinClass", MySpecialButtonSkin);

    }

    override the clickHandler(event:MouseEvent):void function

    {

    this.parent.addChild (NewPanel);

    }

    } [/ quote]

    I get no errors or warnings, it just seems to get hung on the line, addChild.  I worked on this problem for a while now and I'm stuck.  Any ideas?

    I think the parent panel should be responsible for adding the new Panel.  And also, why you override clickHandler?  Try to take responsibility for adding children to the parent of the key and try to add the parent of ITTO.  Here is some pseudo-code of what I speak.

    public function buttonClicked (event: Event): void

    {

    var newPanel:NewPanel = new NewPanel();

    addElement (newPanel);

    }

    .....

    Sincerely,

    Ubu

  • How to create a report of vm-info of several scripts?

    Hello

    I combined several scripts for the following and it ceates 4 correct outputfiles.

    But it is possible to create a 1fichierdesortie with all the lines?

    Thank you, Robert

    1. Initialization section *.

    ##################################

    1. Declaring global and static variables

    2. VMware VirtualCenter server name

    $vcserver = 'coat '.

    1. Path to the output file

    $outputfile1="D:\Output_scripts\VMware\VMinfo_part1.csv".

    $outputfile2="D:\Output_scripts\VMware\VMinfo_part2.csv".

    $outputfile3="D:\Output_scripts\VMware\VMinfo_part3.csv".

    $outputfile4="D:\Output_scripts\VMware\VMinfo_part4.csv".

    $outputfile_total="D:\Output_scripts\VMware\VMinfo_Total.csv".

    #################

    1. Add VI-toolkit

    #################

    Add-PSsnapin VMware.VimAutomation.Core

    Initialize - VIToolkitEnvironment.ps1

    to connect-VIServer $vcserver

    1. *************   Start Process 1   *********************************************

    $report1 = @)

    Get - VM | % {

    $vm = $_ | Get-VMGuest

    $row = "" | Select VMname VMTools, IPAddr1, IPAddr2, IPAddr3, OsFullName, host name

    $row. VMname = $_. Name

    $row. VMTools = $vm. State

    $row. Host name = $vm. Host name

    $row. IPAddr1 = $vm. IPAddress [0]

    $row. IPAddr2 = $vm. IPAddress [1]

    $row. IPAddr3 = $vm. IPAddress [3]

    $row. OsFullName = $vm.osfullname

    $report1 += $row

    }

    $report1 | Sort - property VMname | Export-Csv $outputfile1 - NoTypeInformation

    1. *************   Start Process 2   *********************************************

    $Report2 = @)

    Get - vm | % {

    $vm = get-view $_.ID

    $row = "" | Select-Object VMname, VMState, TotalNics, TotalCPU "TotalMemory Mb.

    $row. VMname = $vm. Name

    $row. VMState = $vm.summary.runtime.powerState

    $row. TotalNics = $vm.summary.config.numEthernetCards

    $row. TotalCPU = $vm.summary.config.numcpu

    $row. {TotalMemory MB} = $vm.summary.config.memorysizemb

    $report2 += $row

    }

    $report2 | Sort - property VMname | Export-Csv $outputfile2 - NoTypeInformation

    1. *************   Start Process 3  *********************************************

    $report3 = @)

    Get - vm | % {

    $vm = $_

    $disksize = (($_ | get-harddisk | mesure-objet-propriété CapacityKB-somme).) Sum) / 1 Mb

    $_ | Get-Datastore. Where-Object {$_.} Type - eq "VMFS"} | % {

    $row = "" | Select "Disc Total GB" data store, Aantaldisks, VMname

    $row. VMname = $vm. Name

    $row. Aantaldisks = $vm. Harddisks.Length

    $row. Data store = $_. Name

    $row. {Total GB drive} = $disksize

    $report3 += $row

    }

    }

    $report3 | Sort - property VMname | Export-Csv $outputfile3 - noTypeInformation

    1. *************   Start Process 4  *********************************************

    $ROTAP = @{name = "ROTAP"; Expression = {$_.} CustomFields.Item ("ROTAP")}}

    $User = @{name = 'User'; Expression = {$_.} CustomFields.Item ("User")}}

    $Description = @{name = 'Description'; Expression = {$_.} CustomFields.Item ("Description")}}

    Get - VM | Select-Object - property 'name', $ROTAP, $User $Description | Sort - Name property. Export-Csv $outputfile4 - noTypeInformation

    1. *************   End Process   ***********************************************

    Disconnect-VIServer-confirm: $false

    Run the Export - Csv cmdlets 4 each write a specific table in the CSV file.

    Each group has different properties or columns if you want to make the analogy with the CSV file.

    Because you can't have a CSV file with different columns that will not be possible as far as I know.

    An alternative could be that you collect all the information in a line that has all the properties.

    This way you go you end up with 1 table that you can export to CSV file 1.

    Here's how it could be done for the first 2 CSV files

    Get-VM | % {
         $vmGuest = $_ | Get-VMGuest
         $vm = Get-View $_.ID
    
         $row = "" | Select VMname, VMTools, IPAddr1, IPAddr2, IPAddr3, OsFullName, Hostname,
                            VMState, TotalNics, TotalCPU, "TotalMemory Mb"
         $row.VMname = $_.Name
         $row.VMTools = $vmGuest.State
         $row.Hostname = $vmGuest.Hostname
         $row.IPAddr1 = $vmGuest.IPAddress[0]
         $row.IPAddr2 = $vmGuest.IPAddress[1]
         $row.IPAddr3 = $vmGuest.IPAddress[3]
         $row.OsFullName = $vmGuest.osfullname
    
         $row.VMState = $vm.summary.runtime.powerState
         $row.TotalNics = $vm.summary.config.numEthernetCards
         $row.TotalCPU = $vm.summary.config.numcpu
         $row.{TotalMemory Mb}= $vm.summary.config.memorysizemb
    
         $report += $row
    }
    $report | sort -property VMname | Export-Csv $outputfile -NoTypeInformation
    

    As the basis of each report is the loop through all the guests (Get - VM cmdlet) should be quite easy to incorporate the other 2 files CSV in a similar way.

  • The script for any necessary Questions?

    I have a form with a table, and according to the answer selected in the left column, which is a menu drop-down fields in the testament becomes necessary.  Sounds confused when I read that, but what I mean is if someone selects YES in the drop down menu to rows1 and 2 and no. 3-6, then the rest of the fields in lines 1 and 2 become necessary and text must be added or drop-down menus should have a valid response that is selected is not the case in the rest of the table.

    The table looks like this:

    Order book?    Author title ISBN\Publisher Total requested readoptions?   Mandatory?

    (Combo O/N)  (Text)   (Text)  (2 text fields seven.)   (Text)     (Drop down list) (Drop down list)

    1.

    2.

    3.

    4.

    5.

    6.

    The answers become necessary in the sense that they must be filled in before the form can be sent and not in the sense that one can only be filled if the previous is answered.  It might be too much for people filling out the form to ensure that the previous field is entered before proceeding to the next.  The entire table is visible already, so I need the fields become visible when you select YES, even though I see the advantage in this too.  Can I have the scripts for the two formulas, as I can do the fields become visible when you select YES (this text cannot be entered if they choose No.) and had to complete before submitting?

    Oh, another thing I want to do is make 1 selection in a menu drop down not valid.  I have a list of *, YES and NO.  I want to do the * not recognized as a valid answer.  Thank you for your time and patience.  I know that this question probably belongs in the forum script, so I'll add it there too.

    If you ask about the function "setRequired", it is intended to be added to the document in function at the level of the document. To create one, select: Advanced > Document Processing > Document JavaScripts

    Add a new one, giving it the name of your choice, remove the skeleton of the service it provides by default and past the above function code. Then, you call the function as shown.

    If you ask what I was discussing the last paragraph, which would be a new script that checks the fields before sending is permitted to take place. I did not code for this. It would also be a script at the level of the document.

    In addition, you should consider what to do if the select user or not, the rest of the line is finished and then later has a change or heart and selects «*» It seems that it would be wise to clear the values in the other fields on the line, but the script currently does not. If you want to only it and get stuck, post again.

  • Need custom button for Thunderbird for FF toolbar; Don't know the Web site.

    I had a custom button in Thunderbird for my FF toolbar and have lost it. This happened once previously had someone gave me a site where all the old custom buttons qwe listwed and I was able to drag / drop the button here. Unfortunately, I do or has this website and hope that someone will be able to provide for me. Thank you.

    Take a look at this search

  • We have a requirement of click to call in installing 10.5 UCCX with customer website (user input) for our customer

    Hello

    We have a requirement of click to call in installing 10.5 UCCX with customer website (user input) for our client, anyone who tested it in the laboratory/prod settings?

    Thank you!!
    Magali

    Hello magali.

    It is possible to deploy with UCCX HTTP trigger type. To get the number of customer via the HTTP trigger to the script. Then we can place the outgoing number of customer to campaign or appeal directly to the customer and place this call to the QSC.

    There are two scripts for web reminder in Cisco repository of scripts, see this http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/cont...

  • I want to move virtual machines to a folder called Linux name, but we have several file of the same name in our Datacenter, please give me PowerCLI Script to move exactly

    I want to move virtual machines to a folder called Linux name, but we have several file of the same name in our Datacenter, please give me PowerCLI Script to move exactly.

    I tried to use for the function FolderByPath below, but don't know how to use it and have worked. Please help me in this.

    Function Get-FolderByPath {}

    < #.

    . Records of recovery SYNOPSIS by giving a path

    . DESCRIPTION the function will retrieve a record by its

    path. The path can contain any type of leave (folder or)

    Data Center).

    . Author NOTES: Luc relaxing

    . Path PARAMETER

    The path to the folder.

    This is a required parameter.

    . Path PARAMETER

    The path to the folder.

    This is a required parameter.

    . PARAMETER separator

    The character used to separate the leaves in the

    path. The default value is ' / '.

    . EXAMPLE OF

    PS > Get-FolderByPath-path ' Datacenter/Folder1/Folder2 ".

    . EXAMPLE OF

    PS > Get-FolderByPath-path "Folder1 > Folder2"-separator ' > '

    # >

    (param

    [CmdletBinding()]

    [parameter (Mandatory = $true)]

    [System.String []] ${Path}.

    [tank] ${delimiter} = ' / '.

    )

    {in process

    If (((Get-PowerCLIConfiguration).)) DefaultVIServerMode - eq "Multiple") {}

    $vcs = $defaultVIServers

    }

    else {}

    $vcs = $defaultVIServers [0]

    }

    {foreach ($vc to $vcs)

    {foreach ($strPath in $Path)

    $root = get-file-name of the server data $vc centers

    $strPath.Split ($Separator) | %{

    $root = get-inventory-name $_-location $root - server $vc - NoRecursion

    If ((Get-stocks-localisation $root-NoRecursion |)) Select--ExpandProperty name)-contains "vm") {}

    $root = get-inventory-name "vm" - location $root - server $vc - NoRecursion

    }

    }

    $root | where {$_-is [VMware.VimAutomation.ViCore.Impl.V1.Inventory.FolderImpl]}|% {}}

    Get-file-name $_. Name - location $root. Parent - Server $vc

    }

    }

    }

    }

    }

    You can try to retrieve the object file by steps as well.

    Something like this for example

    $folder = get-data center-name 'LTX01-G8 | Get-file-name "LTX-servers | Get-file-name "LTX servers 0000 - 0299. Get-file-name Linux

    I guess the first qualification in your path was the data center.

  • Is it possible to have several buttons send grouped with different fields in the subforms on a single page?

    Hello world

    I have a form with two sections. Each section is a subform (the green boxes represent subforms in the screenshot) and each subform contains three required fields and a release button (the button submit to an e-mail address). The problem is that I can't seem to keep them separate. If I fill in the fields required in Subform1 and then click on the button 'Submit to regional HR', he took over the fields required in the subform 2. Is there a way to 'point' or 'group' these fields to each Submit button in their respective subforms?

    I can not be understanding the appropriate function or expects subform correctly. I learned designer of the life cycle on my own and with the help of this forum. Thank you very much for your help. -Chris

    submit_different_subforms_question.png

    I'm an amateur, but I decided to start helping as much as possible on these forums.

    I had a similar problem in the past and found a solution. I can't say with certainty that it is the best solution, but since each button has only 3 mandatory fields, it's a workable solution.

    So this is complicated but also somewhat simple solution that works. Please keep in mind my script experience is limited.

    For the first submit button allow the script to remain in its natural state. Make sure that your email presentation is correct. You will create a second button which will be a standard button. Change the text to be the same as the text for the first submit button. Within this button, the click event, puts a script like this.

    (

    If

    Required.Field.1.rawValue == null or

    Required.FIeld.2.rawValue == null or

    Required.FIeld.3.rawValue is nothing

    then

    xfa.host.messageBox = ("If you please fill all required fields")

    on the other

    Submit.Button.execEvent ("mouseUp")

    endif

    Repeat this step for the second button on the subform.

    now do the real hidden submit button and place the second button in its place. He will check the required fields have entered values and if they entered it will be then press the button to send real otherwise it will put in place the error message. This method requires that the mandatory fields are not marked as required by the value tab. They must be optional, if not built in scripts will interfere with the written order. This is a work around, but I found that it allows better control of the required fields. You can add a floating asterisk or perhaps a border coloured fields so that users are aware of what fields are mandatory.

    I really hope this helps. I know this can be confusing, but I understand that sometimes it can be difficult to get a response, so if I can be useful, I'll try.

  • I want to use a custom button photoshop with my composition and have the substitution effect

    I'm trying to put a button in photoshop in a blank publication widget trigger. When I cut an paste the image into the trigger, he loses his robot and switches are no longer the colors during the reversal. It works very well in the composition of the lightbox, but the problem with lightbox composition, is there no working capital options to display click only target. How to work around this problem. I want to have my own custom button with the effect of composition within the cc muse.

    You should check the design layout and defined States for relaxation, if the State is set correctly then it should show the rollover State, but the container target corresponding to the relaxation is on the page, then it could show you the active State not the rollover State.

    Thank you

    Sanjit

  • Is it possible to have several break the view have need to click on the button 'continue' to continue?

    Is it possible to have several breaks notice require to click on the button 'continue' to continue?

    Yes I know it s crazy frustrating. It took me three days to figure out what I had to do.

    You could get my file but I Don t know where to download.

    You set movie (click the play next to the movie icon and choose reading). No automatic reading of the symbol or triggers tell the movie to play (if you intend to work they way I wanted, which is impossible to tell). There are probably other ways, but none of the 2000 I tried before worked.

    When you´ve set the movie to play, mark the spot on the timeline of the movie where you want to pause, and then click pause in playback of movies. Define a trigger on the chronology of the symbol with playback > stop all > 'your symbol name' in the symbol timeline just to the right of the pause. Then set to play again to the right of the shutter release. Make a button with action play chronology of 0

    It sounds very complicated, but it s not. Find how it was REALLY hard for me anyway

  • Workspace of HP: HP Workspace eliminates the need for a customer to have a VPN?

    Hey everybody,

    HP workspace eliminates the need for a customer to have a VPN?

    Thank you

    Bill

    If a customer is already using a VPN infrastructure, HP workspace does not eliminate the need for a virtual private network, since HP Workspace application virtualization Server servers might need access through the VPN. HP offer a service added to a VPN integration for HP customers workspace which may require it. For purchase details, please contact your authorized HP or HP account.

Maybe you are looking for

  • My Qosmio stops automatically after some time

    Hello. My computer already has in the support center.Since he returned, I have a huge problem.When I play games it stops automatically after a certain time.After some time, I found out why. The temperature of the gpu goes above 90 degrees.* First - I

  • Video camera to Skype for MAC mini

    I'm looking for a video camera to Skype for my MAC MINI OSX 10.9.5 Im whereas Ausdom AW525, AW920, AW310.  Do you know if they are compatible with MAC OSX 10.9.5?   Can you recommend a Skype video camera that is compatible with MAC and its updates of

  • Any version of Airport running in Lion or later utility that will handle an Airport Extreme 2004?

    We have a very old Airport Extreme, 2004 which works well, but is seriously crimping our internet speeds via Comcast (confirmed today using an ethernet direct connection to the cable modem, sparking a jump from ≍14mbps to ≍57mbps). I would like to gi

  • Gateway ne56r13u:, t find driver

    I have a hp photosmart c4580 all in one printer, copier, scanner, I downloaded on my computer windows 10 laptop gateway ne56r13u, printer was working shortly after. now the printer, work isn't hp forum said to uninstall printer and do a clean install

  • Value of money to upgrade?

    I am currently shooting with a T3i and have been very satisfied with the results.  I have considered upgrading to full frame, but the price and the investment I made in the EF-S-objectives makes me shy away for now.  I was wondering if it would be wo