Need a FormCalc script to call a hidden button

I have a FormCalc script on the sending by the Send button Click event. I need to call a second hidden button that uses a JavaScript when the click on send the form by e-mail.

Each button is working on its own, but I have a problem with the script to call the hidden button display button.

Thank you

MDawn

You can use the method exeEvent of the hidden button.

In the example, I am executing the Click of Button1 event from a different control below.

Replace Button1 with full path of your control and the name of the event.

Button1.execEvent ("Click");

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Need help with a FormCalc script...

    I have an auto form certain text fields based on a date field. It works fine, but when I open the form, the fields are already filled with a default date when I actually put "Week start" date, he turns into what I want, I don't want the fields to have something in them when the form is opened.  The FormCalc script that I use is the following

    var dateNum = date2num(form1.Checklist.weekStart.formattedValue,"MMMM DD, YYYY")

    $.rawValue = num2date(dateNum,"MM/DD")

    Here is a link to the file itself

    https://DB.TT/UScOAGZr


    We FormCalc, blocking the right controls the drop-down list of the calendar to make sure that they select a Monday.

    I like to put as much of my code that I can in one place, so it is easier to change things. That is why I proposed to do all of the drop-down list calendar.

    So, you could do something like:

    var selectedDate = Date2Num($,"YYYY-MM-DD")
    var dayOfWeek = Num2Date(selectedDate, "E")
    
    if (dayOfWeek <> 2) then
              xfa.host.messageBox("Week Starting must be a Monday")
              $ = null
              xfa.host.setFocus("$")
    endif
    
    Table1.Row1.dayMonday = num2date(selectedDate, "MM/DD")
    Table1.Row1.dayTuesday = num2date(selectedDate + 1, "MM/DD")
    Table1.Row1.dayWednesday = num2date(selectedDate + 2, "MM/DD")
    Table1.Row1.dayThursday = num2date(selectedDate + 3, "MM/DD")
    Table1.Row1.dayFriday = num2date(selectedDate + 4, "MM/DD")
    Table1.Row1.daySaturday = num2date(selectedDate + 5, "MM/DD")
    Table1.Row1.daySunday = num2date(selectedDate + 6, "MM/DD")
    

    (I dissociated from the first table that it was originally the need to use xfa.resolvenodes.)

  • Need a script to display the hidden field if number = 568845

    Hi all

    Using Acrobat Pro 9.1 on iMac with OS 10.6.8

    I am working on a form to fill out and need a script to display a hidden field when a button is clicked.

    I've set up a numeric field to type a number, and the hidden field is "text1".

    Now, I need a script to the button open only the hidden field, if the field number = 568845

    In this way the customer can fill in the code and then show and type in the field.

    Any help would be appreciated.

    Ron

    Given that you use it by a button, you can't use event.value because a button has no value, and in any case, you want to check the value of another field. So this place like your button MouseUp event (of course, you have to adapt the name of the text field...):

    If (this.getField("Text1").value == "568845") {this.getField ("Hidden_Field") .display = display.visible} else {this.getField('Hidden_Field').

    display = display.hidden}

  • Need help with script java folder level for silent registration with unique file name

    That's what I'm trying to do

    1. when a person completes the request on one of our computers in the office, there will be a button send at the bottom of the application.

    2 submit the application on is automatically stored on the local server with the file name determined by the fields name and surname on the application.

    example - John Doe Application.pdf

    Saved in the folder C:\Users\Station1\Desktop\FinishedApplication.jpgApplications

    3. This is the example of code I found, but I don't know how to enter which fields determine save name and where to save it to.

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

    Thank you!

    Lol this is the part that you need as a script to the folder level:

    var lcbSaveAs = app.trustedFunction (function (vDoc, vPath) {}

    app.beginPriv ();

    vDoc.saveAs ({cPath: vPath});

    app.endPriv ();

    });

    This is the code you use in your file:

    lcbSaveAs (, "/ C/users/specialisee1/Desktop/result /" + this.getField("FirstName").valueAsString + "" + this.getField("LastName").valueAsString + "Application.pdf");

    lcbSaveAs is the name of the function of trust.

    vDoc.saveAs is the Document object, call the saveAs method.

    I don't know what oDoc.SaveAs is, or where you got it.

  • How the photoshop script can call an applescript script

    I realize, maybe it's a bit of a messy way around it, but I need to get the photoshop script to call an applescript script. Basically so that I can have it become a menu item in photoshop.

    Is - this show applescript can in the same way photoshop script?

    If this isn't the case, I thought I could get either photoshop script to call the applescript or even more messy, I could use Photoshop to run a Terminal command to call the applescript.

    All thoughts

    Matt

    For those who come through it

    Save your applescript as an application, and then you can use

    App.System ("' open ' / path/to/script_as_an_app.app'" ");

    then everything works

  • FormCalc/Script of the query?

    Start time
    End time
    Mode of Transport
    Travel time
    HH: MMHH: MMDrop-down listAuto calculated on the start/end times

    Total travel time
    Sum of the travel times

    Mode of Transport
    Journey time to total time
    Drop-down list

    I created an interactive form, which requires that members of the public to fill out a travel diary. I had all the calculations to work except the bottom table. I am trying to understand what formcalc scripts use to give a total of each mode of transport, based on the users choice. For example, if you want the user to see how many minutes they have cycled this week, they choose the bike in the drop-down list on the bottom table and then in time of course total he tells them how many minutes they have cycled this week here.

    Hello

    I'm all for learning and hope that this value returned form help. But a little annoyed that managers are not 'seems' to be place a value on this topic.

    https://Acrobat.com/#d=HJIBeWz3ZjvcBZjsSW-VRW

    I fixed the first two pages, how I think that it would be preferable to address the problem:

    1. I deleted the lines and just kept a line that is repeatable (see object > range of binding). It is easier to maintain, because the script is a line. The line is then defined to have a minimum of 10 occurrences.
    2. I have also included tips in the areas of accessibility. All authorities.
    3. You must name the objects based on their role. This makes it much easier to script. See here: http://assure.ly/mxZO9T.
    4. I have inserted a page and a table for the summary. I took an approach where all categories would be visible and the corresponding times. I also includes a bar chart. You could color each bar based on the green of the mode of transport.
    5. You will need to look at the script in the summary times. It runs through the first two pages AND loops through each of the 10 rows in each of these tables.

    Loop script for anyone interested:

    // Set up some variables
    var vTime = 0;
    var currentRow;
    // Calculate a summary for car
    for (var i=3; i<5; i++) // work through the first two pages
    {
         for (var j=0; j<10; j++) // work through the ten rows in each page
         {
              currentRow = xfa.resolveNode("Page" + i + ".Table1.Row1[" + j + "]"); 
    
              if (currentRow.modeTransport.rawValue == "Car")
              {
                   vTime = vTime + currentRow.journeyTime.rawValue;
              }
         }
    }
    // Set summary journey time
    this.rawValue = vTime / 60;
    

    I hope that your manager will see value!

    Niall

  • I need Skype credit to receive calls on my Skype #?

    I just bought a Skype number for 12 months. I used to use Skype credit to make calls without number, but now that I have a number I can receive calls but I need Skype credit to receive calls to this number? I thought that I wouldn't need to since I paid for the number 12 months? Could someone enlighten me on this please?

    I want to be able to receive calls on my Skype people using their cell phone number not Skype.

    Your Skype number is used to receive calls, Skype credit are to make calls, they are not connected somehow, the only way this would happen is if you want to forward your calls, you have to pay for it somehow.

    So bottom line is no, you don't need credits to receive calls to a Skype number.

  • Need a PowerShell script to...

    Hi, I need a PowerShell script to list all the virtual machine from the center of data-list for each virtual computer all drives and formats the disc and the disc type and a free column for comments.

    Move us the backup platforms and try to develop a plan of migration for all virtual machines

    See you soon

    Looks like you are using an older version of PowerCLI, the CapacityGB was introduced in one of the previous PowerCLI builds.

    Try to upgrade.

    If an upgrade is not possible, you can do

    Get-Datacenter -Name MyDC | Get-VM | Sort-Object -Property Name |Get-HardDisk | Select @{N="VM";E={$_.Parent.Name}},Name,@{N="CapacityGB";E={[int]($_.CapacityKB/1MB)}},@{N="Type";E={[string]::Join('/',($_.DiskType,$_.StorageFormat,$_.Persistence))}},@{N="Comment";E={' '*25}} |Export-Csv C:\HD-report.csv -NoTypeInformation -UseCulture
    

    It also sorts the VM on their Name property.

  • Need a powershell script to create a local user on esx given the esx server list box

    Hello

    I need a powershell script to create a local user on esx in a given list entry of esx servers through a csv spreadsheet. The script should ask me the user name and the password for the user name to be created on the given list of esx servers.

    Thanks in advance!

    Just noticed that there is a lack of vacuum after the - password parameter.

    It should be

    $userName = Read-Host "Username"
    $password = Read-Host "Password" -AsSecureString:$true
    Import-Csv "C:\vmhosts.csv" | %{
         Connect-VIServer -Server $_.Hostname -Credential (Get-Credential)
         New-VMHostAccount  -Id $userName -Password $password -UserAccount:$true -GrantShellAccess:$true -Confirm:$false
         Disconnect-VIServer -Confirm:$false
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a powershell script to extract VM-&gt; IP-&gt;-&gt;-&gt; mapping vSwitch portgroup vNIC

    Hello

    I need a powershell script to extract the following information for all the VMS in vcenter.

    vm_name | ESX_name | Cluster_name | vm_IP_address | vNIC_name | PortGroup | vSwitch

    Please note that multiple virtual machines have several vNIC where vNIC is connected to various exchanges

    Here you go

    $report = @()
    Get-VM | %{
         $vm = $_
         $_ | Get-Vmguest | %{
              $guest = $_
              if($_.Nics){
                   $i = 0
                   $_.Nics | %{
                        $row = "" | Select Name, Powerstate, Host, Cluster, "IP address","Nic Name",Portgroup,vSwitch
                        $row.Name = $vm.Name
                        $row.Powerstate = $vm.PowerState
                        $row.Host = $vm.Host.Name
                        $row.Cluster = ($vm.Host | Get-Cluster).Name
                        $row."IP address" = $guest.IPAddress[$i]
                        $row."NIC Name" = $vm.NetworkAdapters[$i].Name
                        $row.Portgroup = $guest.Nics[$i].NetworkName
                        $row.vSwitch = (Get-VirtualPortGroup -Name $guest.Nics[$i].NetworkName -VM $vm).VirtualSwitchName
                        $report += $row
                        $i++
                   }
              }
              else{
                   $row = "" | Select Name, Host, Cluster, "IP addr","Nic Name",Portgroup,vSwitch
                   $row.Name = $vm.Name
                   $row.Powerstate = $vm.PowerState
                   $row.Host = $vm.Host
                   $row.Cluster = ($vm.Host | Get-Cluster).Name
                   $row."IP address" = "na"
                   $row."NIC Name" = "na"
                   $row.Portgroup = "na"
                   $row.vSwitch = "na"
                   $report += $row
    
              }
         }
    }
    $report
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a powershell script to find the PID of VM in an ESX box

    Hello

    I need a powershell script to list out the PID of all virtual machines running in a box of ESX.

    The script should prompt for ESX box name and root password.

    Expected results:

    The virtual computer name.  NEST

    Thanks in advance!

    My mistake, the point (any character) is to eat the rest of the message.

    Try again with

    $mask = [regex]"vmid=(\d+)\s+([\w-]+)"
    

    He accepts what regex esteem alphabetic characters or the hyphen (-).

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a powershell script to gather information from ESX host

    Hello

    I need a powershell script to collect the below given information host ESX to the Virtual Center. My VC:2.5 of the environment, the ESX hosts: 2.5, 3, 3.5

    At present I have individual powershell scripts of a steamer to get these details. Would be more useful to have a single script. I tried VESI, but does not receive the report in the below in the format.

    | ESX host name Version | Number | construction | manufacturer Model | Processor type | Number of physical CPUS | Number of cores | VMotion service IP Console IP | | County HBA | Physical NETWORK interface cards count

    Thanks in advance!

    So I'm at my wits end here.

    It works for me and Robert also confirmed that it worked for him.

    Although I don't see why this would solve the problem, you could finally try an upgrade to PowerShell v2 RTM.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Of script Lady no need a simple script to work with labels...

    I have everyone! I know that I've already should I have learned Javascript. God knows I've really tried, but I couldn't cope with the work. Again, I must ask my dear Scripting Guys to fix this for me!

    It goes like this: I'm going to start publication of some books that have a lot of points with different tabs. There are many it is really difficult to solve problems with paragraph styles.

    What I need is a script that could mimic the operation of the two buttons that are available in Word format

    IncreaseDecrease.PNG(Increase and decrease the indent level of the paragraph [to the default tab next or previous already established in this paragraph style]).

    Can someone help me?

    Thank you in advance,

    Maria

    Maybe I was not quite clear. Since tabs could not be repeated, making the general script enough to handle the case of say, the tabs set at 10mm, 25mm, 31mm, 46mm and 70mm might be a bit difficult. But if we can assume that they all go to repeated intervals (10mm, 20mm, 30mm, 40mm, 50mm, 60mm, 70mm), it is much easier.

    Two scripts. Save it as increaseIndent.jsx:

    app.selection[0].leftIndent+=app.selection[0].tabStops[0].position;
    

    And then decreaseIndent.jsx:

    app.selection[0].leftIndent-=app.selection[0].tabStops[0].position;
    

    Simply, it increases or decreases the leftIndent of the current selection by the position of the first tab stop of the same selection.

  • I need a javascript script that would allow an image to import into the drive. I have a Mac so LiveC

    I need a javascript script that would allow an image to import into the drive. Only, I have a Mac so LiveCycle is not an option.

    Screen shot 2010-07-17 at 12.42.41 AM copy.jpg

    OrangeWhip area is where a user would click to download an image.

    Screen shot 2010-07-17 at 12.43.12 AM.jpg

    I found this form and unable to crack how to proceed. Any suggestions?

    For forms created with Adobe Acrobat read this:

    http://www.PlanetPDF.com/Enterprise/article.asp?contentid=import_images_into_field_with _

  • How and where to use Java script to create a new button in the page of detail of the object

    Hi all

    I want to create "New/Add button" in the page of detail of the object. If I'm not mistaken I need to use the java script for this, but could you please let me know how and where to use Java script to create a new button in the page of detail of the CRMOD object.

    Thanks in advance.

    Kind regards
    Manish

    Any related object on the details of the page should have an 'Add' or 'New' or the two default buttons - it of a vanilla feature and will do the required action.

    If you want to change this behavior and do something delicate you will potentially have to to go for javascript. You must add the javascript code in a web custom tab on this object.

    Admin--> Application Customization--> Contact--> Applet Web Contact

    Now add your javascript in the code box, after selecting the type = HTML for this web applet, expose this web applet on the Contact details page layout and your javascript will be called every time this page is loaded.

    Check this document online to see how javascript can be integrated into the CRM on demand http://helponmyproject.com/TTOCOD/

    See you soon!
    Royston

Maybe you are looking for

  • Delete the conversation on both sides?

    OK some time ago I deleted my conversational story (via tools, options, privacy, clear history). But apparently that clears only my side of the conversation, one of my contacts are now citing things centuries ago and it of annoying me, is there a way

  • Update security for Windows (XP) maintains a failure.

    This has happened for months. KB976323 is the culprit. My Tech of lead may not understand how to get rid of this update. It drives me crazy and adds a lot of time in my day when I have to wait for the software to load and then fails. Thank you.

  • LaserJet 2300: Laserjet 2300 horizontal streaks

    Hello We have a 2300 Laserjet that works very well. That the cartridge is empty, we bought the spare cartridges which are officially HP 10A (Q2610A) 2300 series voor.  After we started making copies again, but they came out with a lot of black horizo

  • Daten in Lightroom wurden Debby

    Hallo,bedauerlicher Weise would ich feststellen, dass alle meine Daten in Lightroom abhanden Australia sind vorhin.Bis auf meinen Katalog all other Daten wurden, wie Panoramen, collections, what, markers, Stichworter etc. Debby.ICH würde mich freuen,

  • 2050Deskjet ink cartridge

    Please a black ink cartridge # 60 can work in my 3-in-one printer Copy print scanning HP Deskjet 2050