Make editable field when the checkbox is enabled, otherwise given value read-only

I try to make a PDF form to fill out, and a document existing, using Acrobat Pro, which does the following:

Form is designed to allow customer agrees to buy a personalized work of art.

The work has a base price, ArtworkPrice. (The ArtworkPrice field is editable)

The customer can choose to include a picture frame. (AddFrame 'Yes' box.)

Choose 'Yes' to add a frame, adds an amount.  (The FramePrice field is editable only if AddFrame checkbox is enabled)

Otherwise, leaving unchecked AddFrame fills the FramePrice field with a value of 0.00.

The TotalPrice is calculated as the sum of the fields FramePrice and the ArtworkPrice. (The TotalPrice field is read-only)

So... this part of the form looks essentially this:

AddFrame? [] Yes

ArtworkPrice _ $ + FramePrice $_ = TotalPrice $_

The FramePrice field must be 0.00 (and not editable) at all times unless the AddFrame checkbox is selected.

How can I do this?

Add this code to the MouseUp of AddFrame event:

If (this.getField("AddFrame").value == "Off") {}

this.getField("FramePrice").value = 0;

this.getField("FramePrice").readonly = true;

} else {}

this.getField("FramePrice").value = "";

this.getField("FramePrice").readonly = false;

}

Tags: Acrobat

Similar Questions

  • Change the font color in the field when the checkbox is enabled

    I have a form that contains two (2) text fields that must have the font color changes from black to red when a check box is selected. This would also work if the fill color changes to red when the check box is selected.

    If we have a named checkbox: checkbox and export value: Yes

    and a textbox named: text

    Paste this code in the mouse box event

    -beginning of code-

    checkbox var = this.getField ("checkbox");

    textField var = this.getField ("text");

    If (checkbox.value is 'Yes')

    {

    textField.fillColor = color.red;

    } else

    {

    textField.fillColor = color.white;

    }

    //---------------code End-----------------

  • Is it possible to lock the file cptx for editing?  Like the other office documents that can be read only.

    It is for the purpose of file sharing cptx to other developers without the intention of editting it. Just to see how it was dveloped

    Sorry, no.

    If the user has sufficient access to open the CPTX to see how you have implemented the slides, objects, advanced actions and variables etc then they would also be able to change anything in there.

  • Creation of required field when the form is visible only

    Hello

    I have created a form that contains about 25 pages inside. The home page has a drop-down list that allows the user to select one of 25 pages and once selected the specific page is hidden to visible. (They are initially hidden). Each 25 page contains radio buttons and I want to make them mandatory when the page that they are visible and not hidden. How can I do this? I searched through the forums, but I could not find a set of step by step instructions for those who are not very tech-savvy with LiveCycle. There is a constructor function of action that I can use? If this is not the case, what script need me, and where and how can I get it? I am inexperienced with script and would welcome words can.

    Thanks in advance

    There are several ways to do depends on how you have configured the form. You can place the code in the event of release from the drop-down list or in the case of option buttons layoutReady. The logic is the same - basically, you use the 'presence' (if it is visible or hidden) to decide whether or not the 'nullTest' is enabled (which makes mandatory - 'error' is on).

    For example, if you culd put this code in the radio buttons in the layout (in FormCalc) event:

    If (Subform1.presence == 'visible') then

    $. validate.nullTest = "error".

    else $. validate.nullTest = "disabled".

    endif

  • Can develop is no longer window of saved passwords which shrinks web address to make it unreadable when the "Show passwords" option is selected? e

    Hello
    After the last update that I can develop is more saved passwords window shrinking the web address to make it unreadable when the "Show passwords" option is selected? What passwords are shown the window compresses web addresses that leaves the www / / http and I can only be able to view a letter or a description of the site. Given the number of passwords you need and different requirements (i.e. 6.8, or 10 characters, high low case number of cases etc.), I quite often find that I want to display the entire page.
    Is there a way I can expand this window please? I know I could use a master password, but I always like to follow the real things...
    THX Jas

    Lower right corner is a "triangle of 6 points" which allows this window to drag more big. Once more this setting is after the closure of the tab "content" and even after that Firefox is closed and reopened.

  • Gamepad Xbox 360 for Windows pc freezing when the vibration is enabled

    Anyone know a fix for this, whenever I have the vibration turned on for any game using the controller Xbox 360 for Windows (by cable), it freezes the game and I can't get my PC to respond again by disconnecting the controller.

    This occurs if the game supports natively the 360 controller or not.

    Games question until now:

    Dead Space
    Dead Space 2
    LIMBO
    Tomb Raider: Legend

    Deactivation of the vibration in one of these games feature solves the problem, but does anyone know a solution where I'd be able to use the vibration?

    The problem you are experiencing may be caused by the power of the amount needed when the vibration is enabled. I had the problem on my old PC, that when I used my controller, my sound would play as the speakers had holes in them and that the game would freeze-freeze-start. The Xbox 360 controllers use 500mA, which is over the limit that provides a USB port. With this audio device, a keyboard and a mouse together via a USB port, which is an aspiration constant quite heavy on the USB supply rail.
    I fixed it by getting a small USB 7 port hub which is outwardly the power (this is important) and plug my controller. This way he can draw the entire, there need without slipping down the USB ports attached to the motherboard. Just be sure it's a hub with an external power supply.

    SC Tom

  • I need to create a PDf form with specific editable fields, including the ability to insert an electronic signature and to be able to save the completed form. What version of adobe supports this?

    I need to create a PDF form with specific editable fields, including the ability to insert an electronic signature and to be able to save the completed form. What version of adobe supports this?

    subscription dc Acrobat or purchase, Plans and prices | Adobe Acrobat DC

  • How to make text disappear when the mouse is over a button?

    Hello, I'm completely new to Flash, and well I need help. I created a page that contains static text in the Center.

    Page has buttons on the side and when I rollover a button text is displayed, but the problem is that when I rollover a button, static text in the Center is here and I want to hide as I can't read anything either because the texts are overlapping.

    How can I make the text in the centre disappear / hide when I rollover a button and how do I make it reappear when the mouse is the off button?

    I hope what I said makes sense.

    You can assign the code onRollOver and onRollOut buttons to the dispappear of text, but you will need make the text a movieclip with instance name that you can use to target to make it invisible.  In the example below, the button has an instance name of "btn" and the movieclip of text has an instance name of "text_mc".

    btn.onRollOver = function() {}

    text_mc._visible = false;

    }

    btn.onRollOut = function() {}

    text_mc._visible = true;

    }

  • Exception: Cluster address must be defined when the grouping is enabled

    Hello

    I created a simple web service and deployed on a cluster. When I invoke the url of the WSDL (http://localhost/webservice/MyService?WSDL) through the browser, I get the closed exception (listed at the bottom)

    I can easily fix this by explicitly declaring a cluster address choices the administration console (environment-> cluster-> address Cluster :), but the documentation says I have is useless to do.) (http://edocs.bea.com/wls/docs100/webserv/setenv.html#wp220521)

    Can someone say that I indeed need to explicitly declare a Cluster address on the deployment and calling web services in a clustered environment.

    Thank you


    Such #-Exception as displayed in the browser-
    Error 500 - Internal server error

    java.lang.IllegalArgumentException: Cluster address must be defined when the grouping is enabled.
    at weblogic.wsee.server.ServerUtil.getClusterAddress(ServerUtil.java:439)
    at weblogic.wsee.server.ServerUtil.getHTTPServerURL(ServerUtil.java:130)
    at weblogic.wsee.server.servlet.WsdlRequestProcessor.getAddressInfo(WsdlRequestProcessor.java:161)
    at weblogic.wsee.server.servlet.WsdlRequestProcessor.process(WsdlRequestProcessor.java:76)
    to weblogic.wsee.server.servlet.BaseWSServlet$ AuthorizedInvoke.run (BaseWSServlet.java:257)
    at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3395)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

    Hello

    You must specify the address of the cluster get this working. This was done because if address cluster is not specified, he had other problems that have arisen.

    Its work as planned.

    :)

    Kind regards.

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

  • How to change the areas of region of report in read-only mode?

    How to change the areas of region of report in read-only mode?

    SKUD.

    Add fuction javascript after the page header (or section of function and Javascript variables)

    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
        }
      }).attr('disabled',pDisableFlag);
    }
    

    pRegionStaticId is static Id + the region

    Note that this code specifically disables only the berries of request. Disabled items are not available after the submission (and are therefore different from readonly). But any javascript page can change disabled or readonly points (client side), so you need to check on the side server to validate the data.

    You can disable items to help

    disableItems ("MY_REGION_ID", true);

    and allow them, by passing false

    disableItems ("MY_REGION_ID", false);

  • How can I update the field when the enabled checkbox

    Hi all

    I am using oracle 10 g forms,

    I have a block with 20 areas. So first 10 fields are not editable and remaining are editable. If the user enters data and modifies the data. And check the box and save the data.

    Inside save button I wrote the code update.

    When the user change records of two or three and three check box and click on save button only a recording is done in my custom table.

    It's my code please correct me where I went worng.

    It's my code inside my button

    declare
    Begin
    If: ASSEMBLIES_BLOCK. CHECK_IN_OUT = 'Y' THEN
    IF SHOW_ALERT ("UPDATE_ALERT") = alert_button1 THEN
    LOOP
    XXTLX_PO_LOGOSTICS. XXTLX_PO_LOGOSTICS_UPDATE;
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
    NEXT_RECORD;
    END LOOP;
    STANDARD.COMMIT;
    fnd_message.set_string ("Transaction saved successfully");
    fnd_message. Show;
    On the other
    NULL;
    END If;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHILE OTHERS
    THEN
    NULL;
    END;


    I write a procedure in the program unit.

    XXTLX_PO_LOGOSTICS. XXTLX_PO_LOGOSTICS_UPDATE

    Is my block of current assemblies that the user enter data and click the save data check box.

    Update XXTLX_PO_ASSEMBLIES set CASE_NO = nvl(:assemblies_block.) CASE_NO, Null),
    PACKAGE_TYPE = nvl(:assemblies_block.) PACKAGE_TYPE, null),
    PACKAGE_QTY = nvl(:assemblies_block.) PACKAGE_QTY, Null),
    GROSS_WT = nvl(:assemblies_block.) GROSS_WEIGHT, Null),
    OPI_DATE = nvl(:assemblies_block.) OPI_DATE, Null)
    Where ponum =: DETAIL_BLOCK. PO_NUMBER
    AND PO_LINE_NUM =: DETAIL_BLOCK. LINE_NUM
    AND BOM_NO =: assemblies_block. BOM_NO;




    So when we click on the multiple check box and save the data that one is striking.

    Thanks and greetings
    Srikkanth

    I guess that I do not understand.

    >
    ... my requirement is that active fields must get updates. If there is way to 10 records in a block, sick day only registration of the 3rd and 4th and then click on the box... and then ill click on save button.
    >

    Is - this block a block of data or a block of data non-base? If it is a block of data, Oracle can manage updates of this block for you because if keep tabs if a record has been updated or not and you wouldn't need to do an UPDATE statement.

    If it is a non-base of data block and you are a loop in each folder and only update items that have checkboxes next to them you would still go to the first record, and then scroll through each record and see if it needs to be updated. I guess right here because I don't think I have a good knowledge on what you're doing, but you can change your XXTLX_PO_LOGOSTICS. Package XXTLX_PO_LOGISTICS_UPDATE update only elements that have checkboxes next to them, by checking every box:

    -- Check Case No
    if nvl(:assemblies_block.chase_no_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set case_no = :assemblies_block.case_no
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    
    -- Check Package Type
    if nvl(:assemblies_block.package_type_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set package_type = :assemblies_block.package_type
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    
    -- Check Package Qty
    .
    .
    .
    
  • Cannot use editiable 'form' on App fields when the document is password protected. Used to be able to...

    We have created manuals on Adobe Pro which has fields to fill in edit for notes and it is password protected. Everything seemed to work perfectly on PC and Mobile Devices until this past weekend when we noticed that on mobile device, edit the fields are locked. The security settings are defined for the user to change the editable fields.

    Hello

    When the password is applied to a PDF document, the PDF document will be encrypted.

    Acrobat Reader mobile products (for iOS, Android, Windows Phone) have the known limit where the changes cannot be saved in encrypted PDF documents.  As a result, users are not able to make any changes (for example to fill in forms or add annotations/comments) to encrypted PDF documents.

    As you already know, there is no such limitation in the desktop version of Adobe Reader or Acrobat.

    Sorry for the inconvenience.

  • AMD week W8100: First 2015.2 black CC video when the Mercury engine enabled with support for 10-bit active

    Just see black video windows in first CC 2015.2 with 10-bit turned on via driver AMD W8100. Videos showing normal with 10 - bit turned in the AMD driver or when Mercury Playback is put on the software reading.

    Tested with or without transmit mercury. Photoshop thin ist in 10-bit, only first gives me headaches when 10-bit is enabled via the driver.

    When I disable 10-bit driver AMD via, first normally videos watch. The drivers updated, computer is new.

    My system:

    CPU: i7-5930 K

    RAM: 64 GB

    GPU: AMD over-pants W8100 (pilot: v15.301.2601)-Beta (v16.5.2) driver does not work with the first CC 2015.2 in 10-bit

    Motherboard: Asus X 99 - Pro (latest drivers chipset)

    OS: Windows Pro 10

    Two follow Setup: HP LP2465 + HP Dreamcolor Z27x (10-bit)

    Any advice to make it operate highly appreciated, file a bug now, too.

    Jacob, I dropped the W8100 AMD to Nvidia Quadro M4000 wich works are flawless, cheaper, faster and 10-bit output for my HP Dreamcolor works perfectly.

    See you soon,.

    Patrick.

  • Calculated hidden field when the field is empty

    It is actually similar to a discussion a few months ago. Our forms are designed to be completed online, printed and sent by electronic mail, by fax or snail - mail. Many times the customer will simply print the form and complete it by hand. When I create forms with calculations, the ' $' or '0.00' appear; This makes it difficult for a person filling out the form by hand to work around these symbols/numbers. A few months ago I had a similar situation involving the percentages and the gurus on this forum (thanks, gurus!) has helped me with the following code and it worked perfectly to hide the fields calculated, unless something has been entered in the fields to calculate.

    A field with a format of 'None' user custom validation script:

    if(Event.Value == 0) {}
    Event.Value = ""; Set null field;
    AFNumber_Format (0, 0, 0, "", "", true); Set number format 0 decimals, not currency.
    } else {}
    Event.Value = event.value; keep the value;
    AFPercent_Format (2, 0, 0); Set the percentage, 2 decimal format.
    }

    This time, the problem involves single numbers (not percent, no change). I used the same logic and fields actually hide/as I want, but the numbers should be formatted with a comma between thousands and decimal with two digits after. I can't understand this! Can someone please offer some advice? Thanks in advance for your help.

    Make sure you use the correct quotation marks. Use quotation marks or single quotation marks, and not 4 single quotes.

    if(Event.Value == 0) {}

    Event.value = "; Set the field null (2 single quotes).

    Supress Zero

Maybe you are looking for