Is it possible to set validation on a form field with data from another field in Adobe Acrobat?

Thanks in advance for any help and advice. I am trying to set a validation for one field that would make sure that the amount entered is 25% of a different field. I tried setting up a validation, but have been unsuccessful. Can anyone offer any insight or solution? Thanks!

You'll need to use a script to do it. Something like this should do:
if (event.value) {
     event.rc = true;
     var v1 = +this.getField("NameOfOtherField").value;
     if (+event.value!=(v1*0.25)) {
          app.alert("The value you entered must be 25% of the value of NameOfOtherField.");
          event.rc = false;
(This will check if the entered value is exactly 25% of the other value... If you meant something else, please clarify)

Similar Messages

  • Is it possible to set valid values at run time?

    Hi,
    I'am using a BPM Presentation and I want to know if it is possible to set the values of a combo box depending of the value of other field in the same presentation ando if so how to do it? I tried to do somethin like:
    var = fiedlValidValues()
    I tried to use refreshValidValues but it says that cannot execute the action in a presentation, I don´t know wath else to do
    but it doesn´t works, any idea??
    Thanks in advance
    Marig
    Edited by: user646988 on 05-feb-2009 19:30

    Hi, thanks Anup
    I followed your advise but i didn´t success. I have question, if I'm getting the default values of a field with a method using a query. The type field is String and I'm using it into a combo box so the method I'm using returns a String[], is something like this:
    for each row in SELECT column
    FROM DataBase.SYSBPM.TABLE
    where var1 = var2
    do
    clases[] = row.clase
    end
    return clases
    But if I use a method for the onChange property if the field how to set the default values?
    I tried with
    for each row in SELECT column
    FROM DataBase.SYSBPM.TABLE
    where var1 = field1
    do
    clases[] = row.clase
    end
    clases = claseValidValues()
    But this is not working, do you have any ideas??
    Thanks
    Edited by: user646988 on 15-feb-2009 19:36

  • How to set a field as mandatory when another field contains specific values

    Hi SAP Experts,
    Is it possible to set the Plant Specific Material Status field as mandatory when the DChain-spec. status field contains a specific set of values? Thanks.
    Regards,
    Kim Yong

    Hi Kim,
        I think you can achieve this using the validation tab in the field.Add a new rule for validation select the condition as test and in the value you have use formula according to your senario.Select the 'Stop execution'.This will make the field mandatory.
    I hope this helps...
    Naga

  • Is it possible to add pic/diagram to SP file with link to another SP file?

    Hi,
    Is it possible to add a diagram, picture, or table to a SP file with link to another SP file?
    I know this is possible in, say, Word. For example, I can add a diagram and check a box to include a link to the source file - so that when the diagram in the source file updates, the diagram in my document also updates.
    This is also my goal in SP - instead of simply including a link to a document elsewhere in SP (or on the same site in SP), I would ideally like to display a diagram, picture, or table and include (behind the scenes if possible) to the source SP file
    so that, when the diagram/table in the source SP file updates, my SP file also updates accordingly.
    For example:
    Instead of:
           The diagram is located in:
           link
    I would ideally like:
           Diagram, picture, or table (with link associated with it) - users can click on the diagram or picture if they desire.
           The diagram or picture is updated whenever the source SP file containing the diagram or picture is updated (the source SP
           file will only contain a diagram, picture, or table)
    Any suggestions are welcome.
    Thank you very much.

    Is it possible to add a diagram, picture, or table to a SP file with link to another SP file?
    I know this is possible in, say, Word. For example, I can add a diagram and check a box to include a link to the source file - so that when the diagram in the source file updates, the diagram in my document also updates.
    This is also my goal in SP - instead of simply including a link to a document elsewhere in SP (or on the same site in SP), I would ideally like to display a diagram, picture, or table and include (behind the scenes if possible) to the source SP file so that,
    when the diagram/table in the source SP file updates, my SP file also updates accordingly.
    For example:
    Instead of:
           The diagram is located in:
           link
    I would ideally like:
           Diagram, picture, or table (with link associated with it) - users can click on the diagram or picture if they desire.
           The diagram or picture is updated whenever the source SP file containing the diagram or picture is updated (the source SP
           file will only contain a diagram, picture, or table)
    Any suggestions are welcome.
    Thank you very much.

  • How to Set a Variable with data from Srouce Data Store

    Hello ODI Experts,
    I have created a Physical & Logical Schema and a Source Data store to pickup data from a database table.
    On the other hand, I have a few variable that I will pass in a web service call (ODIInvokeWebService tool).
    Would yo please guide how I can set variables from my source data store.
    Thanks & Regards,
    Ahsan

    Hello Bos/Damodhar/ODI Experts,
    Doesn't it gives me a less optimized approach picking one column per query (per variable)?
    Lets say, I have to pick 35 columns from a table and put those in 35 variables...It would mean running 35 queries for fetching one record from the database table.
    Doesn't it seem less performance effective (less optimized)..a little scary..any thing better that I can do to make it more optimized?
    Another question, what if multiple new values have come in the DB table, since I am using Refresh Variable, would this variable have multiple values in it?
    Thanks for all your help,
    Ahsan
    Edited by: Ahsan Asghar on 21-Jun-2011 07:46

  • Is it possible to set the default font in Pages with Workgroup Manager?

    School district. We use iWorks '09 (currently) and several teachers would like the default font for all students to be a specific font (Comic Sans because of the shape of the letter 'a' and the number '4').
    I know about creating the template and using the template, but that must be done for all student accounts, and must be done again for any incoming new students.
    I would prefer there to be a way of setting this in WorkGroup Manager? I don't see that it is possible though. Or am I missing something?

    You might also consider using color groups with Illustrator. Let me know what you think. It may help you out with projects that use the same color preferences.
    Check out the tutorial here:
    http://www.adobe.com/designcenter/illustrator/articles/lrvid4019_ai.html
    Let me know if this helps you.
    Vicente Tulliano

  • Is it possible to set a "query in change mode" with the Report Designer 7.x

    Hi,
    I have a query set in "change mode"  with an index set as "data can be changed using user entries or planning funcionts".
    If I use this query as a "Data Provider" in the Report Designer, the result is still in "change mode" or a result of the Report Designer is only a static image?
    Thank's,
    Valentina.

    Hi Deepu,
    I had suspected this...
    Thank you very much!
    Regards,
    Valentina.

  • Is it possible to set up the Time Machine app with the AirPort Time Capsule on an iPad or iPod?

    I coould set it up on my mac, but don't appear on the ipad or ipods. It works only on computers? Please, someone let me know how to set it up.
    Thanks!

    No. The mobile devices are not backed up with Time Machine or Time Capsule. They are backed up either to iCloud or iTunes only.
    Allan

  • Calling a method and setting an ImageIcon with source from anoth class

    I am trying to make a simple game, first I am trying to set up a game board, and make it possible to place units on the board. (This game will probably never be possible to play, I am just using it to try to understand Java, GUI, Swing, and using more than one class).
    So far I have 4 classes: Board (extends JFrame, sets up a gameboard, on which to place the pieces), Unit (a class from which the specific units types will inherit), Horse (my only type of unit, which extends the Unit class), and Game (which calls methods from the other classes).
    (These don't do much now.. this is what they will do, hopefully).
    All these classes are in a package called Gamev1.
    In the main method of Game, I do:
    ---code--
    public static void main (String[]args){
    new Board().show();
    Horse horseUnits[] = new Horse[1];
    horseUnits[0] = new Horse();
    horseUnits[0].moveUnit(squares[0]);
    end of code--
    when I debug it I get:
    myjava/FirstGraphics/Gamev1/Game.java [25:1] cannot resolve symbol
    symbol: variable squares
    location: class.myjava.FirstGraphics.Gamev1.Game
    horseUnits[0].moveUnitsquares[0]);
    1 error
    ---code----
    moveUnit(JLabel moveTo)
    is a method in Unit class:
    public void moveUnit(JLabel moveTo){
    target=moveTo;
    target.setIcon(this.image);
    if (this.position !=null)
    this.position.setIcon(noUnit);
    this.position=moveTo;
    ---end of code---------
    squares[] is an array of JLabels which is set up in the Board class, whenever a new Board is created:
    ---code---
    JLabel squares[] = new JLabel[100];
    for (int s=0; s<100; s++){
    squares[s] = new JLabel();
    ---end of code---
    I tried changing the reference from squares[0] to Board.squares[0] but I got the same error message in debug.
    Any idea what is wrong?
    I have another problem, which is probably similar.
    in the Board class I call:
    squares[s].setIcon(Unit.noUnit);
    and in the Unit class I have:
    static ImageIcon noUnit = new ImageIcon("images//none.gif");
    I don't get an error message mentioning it, but (without the attempt to place the horse on the board) the program compiles, but doesn't put this image on the labels. Any idea what is the porblem here?
    If I have not given enough information for anyone to help me, please tell me what further information I should give.
    Thanks to anyone who answers.

    I got it to work with
        Board board = new Board();
        horseUnits[0].moveUnit(board.squares[0]);To use Board.squares[0], squares would have to be static.
    The ImageIcon seemed to work okay. I noticed that your post had two slashes in the url [/] - that might throw things off . . .
    The code below has the icon call at the end of setLabeLProperties.
    I got carried away playing with the graphics so the squares don't work very well.
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class HumaniBlue {
      public static void main(String[] args) {
        Board board = new Board();
        board.show();
        JLabel label5 = board.getLabel(5);
        //System.out.println("label5 name = " + label5.getText());
        Horse[] horseUnits = new Horse[1];
        horseUnits[0] = new Horse();
        horseUnits[0].moveUnit(board.squares[0]);
    class Unit {
      static ImageIcon noUnit = new ImageIcon("images/bclynx.jpg");
      public void moveUnit(JLabel square) {
    class Horse extends Unit {
      public Horse() {}
    class Board {
      JFrame f;
      JPanel gameBoard;
      int labelSize;
      JLabel[] squares = new JLabel[16];
      GridBagConstraints gbc = new GridBagConstraints();
      public Board() {
        gameBoard = new JPanel(new GridBagLayout()) {
          public void paintComponent(Graphics g) {
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            double width  = getSize().width;
            double height = getSize().height;
            g2.setPaint(Color.white);
            g2.fill(new Rectangle2D.Double(0, 0, width, height));
            g2.setPaint(Color.black);
            Shape line;
            double
              gridSize = (width < height ? width : height) * 0.8,
              gridUnit = (width < height ? width : height) / 5,
              x = (width  - gridSize) / 2,
              y = (height - gridSize) / 2;
            labelSize = (int)gridUnit;
            for(int j = 0; j < 5; j++) {
              line = new Line2D.Double(x, y, x, y + gridSize);      
              g2.draw(line);
              x += gridUnit;
            x = (width - gridSize) / 2;
            for(int j = 0; j < 5; j++) {
              line = new Line2D.Double(x, y, x + gridSize, y);
              g2.draw(line);
              y += gridUnit;
          //System.out.println("width = " + width + "\theight = " + height + "\n" +
          //                   "x = " + x + "\ty = " + y + "\n" +
          //                   "gridSize = " + gridSize + "\tgridUnit = " + gridUnit);
        f = new JFrame();
        f.getContentPane().add(gameBoard);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(400,400);
        f.setLocation(600,200);
        //f.setVisible(true);
        setLabelProperties();
      private void setLabelProperties() {   
        int
          r   = 30,
          g   = 30,
          b   = 0,
          inc = 55;
        //System.out.println("labelSize = " + labelSize);
        for(int j = 0; j < squares.length; j++) {
          squares[j] = new JLabel("Square " + j, JLabel.CENTER);
          squares[j].setOpaque(true);
          squares[j].setPreferredSize(new Dimension(73, 73));
        // add labels
        int index = 0;
        gbc.gridx = 0;
        gbc.gridy = 0;
        for(int y = 0; y < 4; y++) {
          for(int x = 0; x < 4; x++) {
            index = y * 4 + x;
            squares[index].setBackground(new Color(r,g,b,90));
            gameBoard.add(squares[index], gbc);
            gbc.gridx++;
            r += inc;
          gbc.gridy++;
          gbc.gridx = 0;
          r = 90;
          g += inc;
        squares[9].setIcon(Unit.noUnit);
      public void show() {
        f.setVisible(true);
      public JLabel getLabel(int index) {
        return squares[index];
    }

  • How can I set an expiration date on a pdf in adobe acrobat 9?

    I am trying to set an expiration date for some documents, I have tried to use several javascript methods with no success. My adobe skills are very minimal so the easiest way possible would be appreciated.

    Acrobat can act as a client to the LiveCycle DRM encryption system but you must have an existing account on a LiveCycle ES/ES2/ES3 server with the Rights Management module activated. That requires you either license a copy from Adobe or work for someone who already has it running and who can issue you an account.
    LiveCycle ES3 is an extremely powerful enterprise-class solution for document creation and publishing, designed for use by hundreds or thousands of employees. To say it's not cheap is somewhat of an understatement, and the Rights Management module is an optional extra.

  • BC4J,Setting a default Value In a View With Data From An Other View

    hi
    I'm developping A BC4J. I want to set the default value of a field By counting the number of rows in an other view.
    So I want to instanciate the view and execute the sql statement and get the result.
    Is that the right manner to do it or not.
    can someone help me to do that
    cheers
    ghassen

    There's lots of ways to skin this cat depending upon whether you mean "database view" or "view object" when you say "view", and individual requirements.
    Given database views v1 and v2 with a common key between them
    select v1.x, count(*) from v1,v2 where v1.key = v2.key group by v1.x;
    either in the database view or in expert mode for the view object ( I think it'll take group by, but never done it ). ( assumption is that v1.x is a primary key for v1 )...
    Try this from sql*Plus first to get a feel for how this works.
    The catch with the above is that it is "static"... if you can ADD rows to v2 in your application... they aren't visible in the count until saved and requeried.
    Another way ( I think... hopefully Oracle folk will kibitz... )
    Create your own attribute on the view object like "TheOtherCount".
    In the view object's RowImpl, find the "getTheOtherCount". Find the count of rows in the second view object or entity object or rowSetInfo through the method of your choice. ( If you've already set up a master detail relationship that is active you can just get the rowcount! ). Refer to earlier postings on how to get the rowcount, or to create a dynamic view query to get the count.
    The nice thing is that this should reflect your counts even if the second view has added or removed rows... but will probably move like a snail.
    Note that if you have a need where you want the row count updated in a frame for v1 whenever v2 is added to or removed from... well... then you need to set up some sort of event listener to do a redisplay of v1's frame, I'd think? Since the attribute you've created in the view object is not based on an entity object attribute, it has no way to know when it has been "updated" via an additional or removed row from the target.
    I'm posting the above because no one has responded yet... it may form a place to start from. And maybe someone in the know will go "No, No, No... KKirk... it doesn't work that way at all!" and fill us in on how this can be accomplished!
    Good Luck

  • Using iPlanet Web Server 6.0 (with ASP or JSP), is it possible to create a StarOffice, Word or Acrobat document using a template and merging it with data from a database (say Oracle)?

     

    Hi,
    It is possible, But it has to be done through codes and iPlanet Web Server has nothing to do with it. But if you want to create the word document by ASP you have to install ASP plugin like ChilliASP (from Chilisoft) with iPlanet Web Server.Merging with database can be done through your code.
    To know more abt creating word doc through ASP try this link
    http://web.ukonline.co.uk/vance/code/aspworddoc.pdf
    Regards,
    T.Raghulan.

  • ITunes Library set up on NetGear R6100 router with ReadyShare from USB port?

    Can the iTunes Library be set up on a NetGear R6100 router with it's NetGear ReadyShare feature. from a USB thumb drive or USB hard drive attached to the one available R6100 router's USB 2.0 port?
    I have read the Apple forum post about a similar question for the more advanced NetGear R7000 router, which says it can work there.  Unlike some of the other sibling Netgear routers that do not have ReadyShare, my R6100 does, which leads me to believe that it should work, since its the same technology (they both have a router USB port with ReadyShare). It just appears that the documentation is very limited. The other post said to format the USB drive to the Apple format (HFS+), rather than Fat32, get the Mac or Apple to see the iTunes directory located on the router's USB port.
        I'd like to know if anyone has had any luck using the ReadyShare.feature on their R6100 for sharing their iTunes library to the same iTunes account on different devices (laptop, PC, AppleTV, iPod, etc).  My Apple TV has recently acquired a problem of not being able to detect the iTunes library on my PC, aftert a recent iTunes update, but that's another problem that the forums show a lot of people having.  So I figured that since my R6100 router has the ability to share media over the network, I would try to move my iTunes library there, hopefully to make it easier to access by my Apple TV, and make it unnecessary to have my PC running when I watch my purchased iTunes movies, that are stored in that library.  Interestingly, my movie and TV show files are stored in my iTunes Music folder under the "Movies" and "TV Shows" subdirectories (folders). The way it is set up now, if I'm watching a HD movie purchased from iTunes with my Apple TV, the movie stops playing as soon as my PC is shut down, which confirms to me that the large movie files are being pulled from there to my Apple TV. 

    Oh groan, not another conspiracy theory.  No, it's a lot more likely Apple and Netgear and the dozens of other manufacturers haven't gotten together with the thousands users who have come up with hundreds of thousands of ways of rigging things up and tested each and every one of them.  I am confident if Apple were out to mess things up for you they could have come up with something a lot more devious.
    Did you do a web search for this?  With a Google search specifying Netgear with this error I found:
    ReadySHARE USB Hard drive access issue from a Mac Computer (Time Machine or iTunes not working properly)
    - Able to see USB hard drive content but unable to write to USB hard drive connected to router's Readyshare port from Mac computer.
    - Error that says  "The iTunes application could not be opened. Unknown error 13008"
    http://kb.netgear.com/app/answers/detail/a_id/22763/~/readyshare-usb-hard-drive- access-issue-from-a-mac-computer-%28time-machine-or
    In fact it is almost certain that it is an issue of that particular model router and the drive formats it can use.

  • How to set password in the form, request is coming from SPML with no pwd

    Hi ,
    Im using SPML request to create and modify users? I have 2 problems
    1) Does anyone know, how to customize the form to call 2 different workflow depending on the request meaning, if SPML request is ADD, then it should call Create User workflow, and SPML request is MOD then it should call Update User workflow.
    Right now, i don't know who to do it and currently it is working for create users only.
    2) Im not getting password field from SPML request, so i have to set password with value 'password' in the form. Can i do that and How?
    Appriciate any response

    Hi,
    According to your post, I know you want to add a custom field to Task form. When vale is Yes, send the email to the assigned person. When the value is No, item update and user can approve the task without the email sending out.
    Doubt you have already create an approval workflow which associated with Task list in SharePoint Designer.
    1. To add new fields to Task Form, click New button in Task Form Fields section. Name the “Send the email or not” of choose type. See the below image:
    Then, save and publish the workflow to make it effect. You can visit the following article for details:
    Updating List Item with Task Form Custom Field in SharePoint Approval 2010 Workflow
    http://blogs.msdn.com/b/kishore/archive/2012/01/15/updating-list-item-with-task-form-custom-field-in-sharepoint-approval-2010-workflow.aspx
    2. In SharePoint Designer, create another workflow which associated with Task list.
    a. Click workflows > List Workflow and choose Task list.
    b. Add the condition, if the current item: “Send the email or not” is equals to yes. Then, add the action “Send an email”.
    c. Publish the workflow.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Possible? access data from another effects plugin

    right this sounds complicated so I'm gonna ask if its even possible before i start trying to build this. Picture this scenario.
    Main comp has layer "A" which is a sub-composition, B. The layer A has my filter on it.
    In comp B, we have a layer "C" with my filter on it (or another one of my filters on it)
    When rendering the main comp, can the filter on A access information held by the filter "C" in comp "B"?
    seems weird but what I'm after here is reusability. The filter on C will contain some information that A needs to render correctly. By placing the information in the nested comp "B", B can be reused anywhere in the project. Alternatively if I just did everything inside filter A, this meta information cannot be propagated across all uses of comp B across the project.
    phew. confused? I know I am.

    That's some scary stuff, but YES, plug-ins can access each others' data. See the Sweetie sample for how a plug-in can expose a function suite that other plug-ins can call. You'll also need a bunch of AEGP_EffectSuite calls to find other plug-in instances, and get at their params.
    I strongly recommend against doing this, however; think of the user!

Maybe you are looking for

  • Cant load mod_authz_default.so to start httpd service

    Hi people.. im having an error just after i updated my laptop 2 days ago and i cant start my httpd service... when i try to start the httpd service i got this error: Syntax error on line 59 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn

  • Error while trying to start OSAUD collector.

    Hi, We have installed Oracle Audit Vault 10g (10.2.2) and trying to collect audit data from a Oracle 10g (10.2.0.1) by using the OSAUD collector. We are able to add the collector successfully by using the avorcldb all_collector command but we are get

  • Keyboard lag while typing

    I was wondering if anyone else experienced a lag in the on screen keyboard while typing in certain apps? I have an app that lets me text my friends but as I try to type I can type out a whole sentence or two before the words on appear on screen. Does

  • J1INCHLN Create challan

    Hi , when i executed j1INCHLN by giving section code 194a , systyem is displaying below message. "For the section entered, there are no relevant tax codes". how to check tax codes wheather tax codes are defined or not for that section.194a. Actually

  • Ad hoc not checking subtype authorization correctly

    Hello, I have an ad hoc query that returns data for a particular subtype (4) from infotype 6.  I have given authorizaion for the infotype/subtype but the query does not return any data.  The Display Authorization Data (SU53) shows that subtype 1 is r