Looking for a script based on values

Hi all

I was wondering if someone might be able to help with a script (I guess) to populate a field based on the value of another field.

What I want is;

If 'A field' had a value of 0.1 or 2 then 'field B' will automatically get a C

If 'A field' had a value of 3 or 4, then 'field B' would get automatically a and B

If 'A field' had a value of 5 or more then 'field B' will automatically get an A


I know that this is probably a simple script but I have no idea how to reach and when I look at 'how to' books I can't understand how to create.


Thank you in advance.

Hello

When you say: ".. masse automatically get a C' means 'field B' should get some 'field C' value present in pdf form or a string of characters "C"?

Based on what I understand it please try the following:

Set Variables for text fields

var a = this.getField ("Text1");

var two = this.getField ("Text2");

if(One.Value == null)

Two.value = ";

ElseIf (one.value == 0 | one.value = 1 | one.value == 2).

Two.Value = 'C ';

ElseIf (one.value == 3: one.value == 4)

Two.Value = 'B ';.

ElseIf (one.value > = 5)

Two.Value = "A";

If you want to set the value on the basis of another value instead of the string, and then only the changes that you need to do is use the variable of this field.

For example,.

Another variable, the value

var 3 = this.getField ("Text3");

Two.Value = three.value;

I would like to know if it works for you.

Tags: Acrobat

Similar Questions

  • I'm looking for a script for a list of all IIS servers in a domain?

    I'm looking for a script VB list all IIS servers (IIS5 and 6) in a field?  If possible, the output contains the version of the IIS server.

    Thank you!

    Try asking in the IIS forums...
    http://forums.IIS.NET/

  • Looking for a script or plug-in

    Greetings from the scope,

    I'm looking for a script or a plug that can cut a layer (even if it only works on a form or a solid) and cut in non-uniform shapes or masks.

    I looked around and found a couple of things, but nothing that creates non-uniform shapes.  Think like a random shocks, except the script would create non-uniform shapes or masks of the initial or solid form.  I hope that makes sense.

    \Thanks,

    Paul

    Maybe it would work. Set up a document Illustrator the size of the layer you want to split into triangles. Create a rectangle. Switch to the line tool and draw a bunch of lines crossing the rectangle using the bearings commented to align the edges and vertices.

    Select all and then use the pathfinder - fracture for a group:

    Select the layer group and sequence layers allows to separate all the triangles in layers:

    Drag each new layer above layer 1 and import the file HAVE as a model to get perfectly matching triangles

    One is irrelevant, so you can see them. Another option would be to select all and copy and then go to the AE and paste to create a mask for each of the forms.

    It takes about 2 minutes.

  • I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    Hi gurrus and LucD

    I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    The script should search for information in a multiple Vcenter servers and multiple clusters and list all the VMs name, status (two powers on or off) with type card NETWORK Type E1000 only no other.

    Concerning

    Nauman

    Try like this

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp |)) Where {Get-NetworkAdapter - VM $_______ | where {$_.}} Type - eq "e1000"}})) {}

    $report += $vm. Select @{N = "VM"; E={$_. Name}},

    @{N = 'vCenter'; E={$_. Uid.Split('@') [1]. "Split(':') [0]}},"

    @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}}

    }

    }

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

  • Looking for a Script to extract information for a virtual machine

    HiEvryone

    Looking for a Script pull information for a virtual of VC machine what operating system installed (2003, 32-bit or 64-bit, 2008 etc), vCPU and memory allocated and State. Output in CSV format.

    Thank you

    vmguy

    You mean something like this

    Get-VM |
    Select Name,NumCpu,MemoryMB,PowerState,@{N="OS";E={$_.Guest.OSFullName}} |
    Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture
    
  • Looking for a Script to check the current status of the VM tools based on resource pool (customer name)

    Hi all and

    LucD The champion!

    I'm looking for a power-cli script to verify the State of VM-tools of all the virtual machines in the cluster multi environment. Could you please help me on this. It would be really appreciated.

    Thank you. in advance.

    Concerning

    Nauman

    Try like this

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp)) {}

    $report += get-disk hard - VM $vm |

    Select @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}},

    @{N = "VM"; E = {$vm. Name}},

    @{N = 'Tools status'; E = {$vm. ExtensionData.Guest.ToolsStatus}},

    @{N = 'HD'; E={$_. Name}},

    @{N = "Datastore"; E={($_. Filename.Split(']') [0]). TrimStart('[')}},

    @{N = 'Filename'; E={($_. Filename.Split('_') [1]). "Split('/') [0]}},"

    @{N = 'Path VMDK'; E={$_. File name}}.

    @{N = "Format"; E={$_. StorageFormat}},

    @{N = ' Type'; E={$_. DiskType}},

    @{N = "CapacityGB"; E={$_. CapacityGB}}

    }

    }

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

  • How to select id when same id has several lines, but I'm looking for ideas lacking a particular value

    I have this my_table_c in the table with the values below

    SELECT * FROM my_table_c
    ID GROUP_ID GROUP_VALUE
    121
    332
    341
    541
    521
    222
    232
    241

    I'm looking for this output where to get only the ID that did not have group_id 2. Besides, I don't want to get the ID where group_id 2 is missing, but the other group IDS are present.

    Group_id if 2 is absent, it is my target id.

    So with the values indicated in the table above, I expect just ID = 3 or returned as other lines ID 1, 2 and 5 have each where group_id = 2.

    Can someone please help with a query to retrieve this result.

    Select *.
    Of
    (
    SELECT id, group_id, group_value, count (case when group_id = END 2 then 1) over (partition by id) as cnt
    of my_table_c
    ) where cnt = 0

  • Looking for perl script find the coordinates of the VM

    Hi all

    I am looking for a perl script (e.g. - vminfo.pl) to find the VM details including the ESX Server that works of VM. If I have a script I can use VIPerlToolkit utilities to ' run the script from any of the machines Linux... can someone please help me with script

    Concerning

    Lucette

    Take a look at the whichClusterIsMyVmIn.pl (http://communities.vmware.com/docs/DOC-10439) script in the repo that provides both the host ESX (i) the virtual machine is hosted on as well as the cluster vCenter.

  • Looking for powershell script to view the path data store policy

    Basically, I'm looking for the equivalent of powershell with esxcfg-mpath-l.

    Any help would be appreciated.

    Try the attached script.

  • Looking for a Script that contains information of BONES in each pool resources in a cluster environment

    LucD

    I am you are looking to modify a script that also contains information of BONES in each pool resources in a multi below cluster environment. Type of operating system, details as much as possible on each VDC OS information in an environment of Cloud Computing of v. I want to understand the news of the BONE in the script below. What kind of changes I need to do in the script below. Help, please. Thanks in advance.

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp)) {}

    $report += get-disk hard - VM $vm |

    Select @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}},

    @{N = "VM"; E = {$vm. Name}},

    @{N = 'Tools status'; E = {$vm. ExtensionData.Guest.ToolsStatus}},

    @{N = 'HD'; E={$_. Name}},

    @{N = "Datastore"; E={($_. Filename.Split(']') [0]). TrimStart('[')}},

    @{N = 'Filename'; E={($_. Filename.Split('_') [1]). "Split('/') [0]}},"

    @{N = 'Path VMDK'; E={$_. File name}}.

    @{N = "Format"; E={$_. StorageFormat}},

    @{N = ' Type'; E={$_. DiskType}},

    @{N = "CapacityGB"; E={$_. CapacityGB}}

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

    }}

    You're missing ExtensionData starting from the operating system objects, i.e.

    @{N = ' configured OS"; E = {$vm. } ExtensionData. Config.GuestFullName}},

    @{N = 'Running OS'; E = {$vm. } ExtensionData. Guest.GuestFullName}}

    I think that what you mean by "auto-fill" is that the application that you use to open the csv file, for example MS Excel does not automatically the full content of each field that the column widths are too narrow. A csv file is a text file with each value separated by a comma, try opening the file in a text editor such as Notepad to see.

  • Looking for a Script in a library to change fleet

    Does anyone know of a resource with a Javascript that automatically alternates the properties of float from right to left?

    I have a list of books with their covers and the graphics are supposed to switch between 'float right', and 'float left'. My problem is that if a new book is in the middle of my tickets, I have to go through all the entries below a new and swap right left. It seems that there should be a script to do this automatically, but I'm just starting to use Javascript in my creations and I am unable to design one myself.

    Use of Pseudo-selecteurs nth child CSS.  This will work even if JS is disabled.

    http://CSS-tricks.com/how-nth-child-works/

    Assuming you are using tags to paragraph for floating containers, your code might look like this:

    {p:nth-Child(ODD)}

    Clear: right;

    float: left;

    Width: 200px;

    }

    {p:nth-Child(even)}

    Clear: left;

    float: right;

    Width: 200px;

    }

    left float

    right float

    left float

    right float

    Nancy O.

  • looking for a script to the list of virtual machines by datastore

    Someone at - it a script that lists each data store, then the virtual machines that are on it. Or maybe the list all virtual machines and data store or data warehouses is located in the virtual machine?

    Thank you

    This should do the trick for you.  In fact, it extends the computer object complete virtual with a property data store so you can still search the other aspects of the virtual machine.

    Get-Datastore. WHERE-object {$_.} {Name - like "DMX *"} | {ForEach-Object

    $dsname = $_. Name

    $_ | Get - VM | {ForEach-Object

    $($_ | Add - Member MemberType NoteProperty-name of store data-value $dsname - PassThru) | Select-object Name, host, Datastore

    }

    }

  • looking for a script to warn on low disk space

    Hello

    Newbye kind when it comes to scripts. I would like to be alerted by SMTP when the ESX scores are low on space.

    Thank you

    Since there is currently no cmdlets so that you would have to use something like plink and perform a df, capture the output and send an e-mail when the threshold is exceeded.

    There are a few threads in this community on the use of plink.

    Make sure that sudo is configured correctly for the account that you use on the plink command.

    This script should do the trick.

    $User = 
    $Pswd = 
    $treshold =  # Used % threshold. Number between 1-100.
    
    $partitionUsage = [regex]"^(/dev/\w+|none)+.*\s(\d+)%\s((/\w*)+)"
    
    $plink = "\plink.exe"
    $plinkoptions = " -v -batch -pw $Pswd"
    $cmd1 = 'df'
    
    $remoteCommand = '"' + $cmd1 + '"'
    $command = $plink + " " + $plinkoptions + " " + $User + "@" + $ESXname + " " + $remoteCommand
    
    $msg = Invoke-Expression -command $command
    
    $report = @()
    foreach($line in $msg){
         $hit = $partitionUsage.Matches($line)
         if($hit -ne $null){
              if([int]$hit[0].Groups[2].Value -gt $treshold){
                   $row = "" | select Device, MountPoint, Percentage
                   $row.Device = $hit[0].Groups[1].Value
                   $row.MountPoint = $hit[0].Groups[3].Value
                   $row.Percentage = [int]$hit[0].Groups[2].Value
                   $report += $row
              }
         }
    }
    $SmtpClient = New-Object system.net.mail.smtpClient
    $MailMessage = New-Object system.net.mail.mailmessage
    $SmtpClient.host = 
    $MailMessage.from = 
    $MailMessage.To.add()
    
    if($report -ne $null){
         $MailMessage.Subject = $ESXname + " - COS partitions above threshold"
         $MailMessage.body = ($report | Out-String -width 60)
    }
    else{
         $MailMessage.Subject = $ESXname + " - All COS partitions are below threshold"
    }
    $SmtpClient.Send($MailMessage)
    

    You can schedule the script with the Windows Task Scheduler.

  • Looking for a script of text by default?

    I work to recreate a form and the text box is quite large with some instructions on what to put in this space by default.  I don't know how to get multiple lines in the default value.  Is there a script to add several lines?  Any help on this is appreciated grealty... Thank you very much.

    Hello

    If the instructions are fixed and will not change when running, why not to use text, rather than the TextField object? This way you can simply type the instructions directly in the LC Designer.

    If you go with a textfield, then the default value (object > value range) can accept returns on line, just down and press return, and this will give you a new line. However, this type is a view of the single line will be painful. You can type in Word and then paste it into the default value. It should honor the carriage returns.

    Once again, if current execution with the TextField object, you can use a script in the docReady event:

    this.rawValue = "This is a very long set of instructions.\n\nPlease read carefully.";
    

    Note that \n will give you a new line.

    Havving said everything that I would use the text for the static text object.

    Good luck

    Niall

  • Look for the logic find the value of m and c of this equation y = mx + c.

    Hello

    I have 4 points for example = 3.38276, 0.375866 xi

    Yi = 3.37749, 0.281924

    using this tip, I want to find the value of m and c.

    You please suggest me some logic to solve this equation using labview programming.

    I tried with one solution, but in this case I do not have the correct answer. Here as an attachment, there is vi help I tried to solve my equation, but in this case the value that never got as a response it is dissatisfied with the equation, means if I replace the value of m and c eqation then it must be L.H.S = R.H.S, but I don't have the right solution.

    You please guide me.

    Thank you very much.

    Why do you think that the results are incorrect? I put your numbers in your code and the result on a XY Chart Wescott, I then bunk which with more than 20 values with a value ranging from 0.6 to 3.2 x and use factors calculated in your code to generate values of Y. The two overlap almost exactly...

    Mike...

    BTW: There is a linear adjustment integrated into LV VI

Maybe you are looking for