Disable required fields when the subform is hidden

I'm having a problem with a new section of a form I created. When a box is checked, a section opens. Then in this new section, there are more options to choose from.  The problem is when the form is hidden fields are always recognized as mandatory.  (at least I think that's what is wrong). Im hoping someone can offer some help. I'll probably have to send you the form, as it is easier to explain when you see the form. If anyone can help I'd be very happy.


Thank you


Nik

Rather than make the field as mandatory in the palette object properties, check if the field is null or is set using script before sending the form...

In this way, you can have more control over the mandatory audit. You can only check if the subform is visible.

Here's an example of what I'm talking about...

https://Acrobat.com/#d=QUAfLtK2Pr9oHv9Q59rT4Q

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Required field in the subform "hidden".

    I have a set of 3 radio buttons. If #1 is selected, then a subform with a field appears. When the poster, there is a required field. It all works very well. What does not work is if the user selects #1 then decides to choose #2 instead, the subform correctly is "hidden", but the field is still regarded as required. I don't know how to solve this problem. Here's the script:

    Create a variable to hold the document object

    var v1 = form1.page3.accessApps.TextField11.rawValue;

    accessApps

    If

    ((v1 == "") || (v1 == null) )

    {

    xfa.host.messageBox ("Please list the applications in that the associate should have access");

    xfa.host.setFocus ("form1.page3.accessApps.TextField11");

    }

    Add just the line of the script that you use to show/hide the subform, or the field.

    if (x)
    {
         FieldName.presence = "visible";
         FieldName.mandatory = "error";
    }
    
  • 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

  • How to disable a checkbox when the other is checked

    Hi, I'm a first time user.

    I am doing dissapaer and strips of text fields when the boxes are checked. but only alow a box to be active at the same time.

    I do a simple form in Acrobat 9 pro.

    I have two checkboxes Checkbox1 and Checkbox2.

    I have two text Textfield1 and Textfield2 fields

    I added shares to checkbox1 and checkbox2 to "hide or show" text fields.

    Action-> on focus (checkbox1) show/hide field (textfield1) is hide

    Action-> on focus (checkbox1) show/hide field (textfield2) is to Show

    Oposite

    Action-> on focus (checkbox2) show/hide field (textfield2) is hide

    Action-> on focus (checkbox2) show/hide field (textfield1) is to Show

    problem 1 - how to disable checkbox1 when the 2 checkbox is checked.

    or disable checkbox2 when checkbox1 is checked.

    my other problem is that this action has the same effect for checking or unchecking the box.

    Thanks in advance to anyone who can help you.

    can you please write your answer in simple terms. Basically, it's the first time I've used acrobat pro so please do not assume that no matter what knowledge at all. Thank you very much.

    First of all, I experience a few boxes to tick, and learn their properties and how they interact.

    Have you tried to use the same name for 2 checkboxes and assign one other "export value" for each checkbox.

    Have you looked at the values a check box or boxes have when checked or unchecked?

    Have you looked at how to work the various actions for a field?

  • How to disable certain fields in the form of a calculation with a checkbox for the fields.

    How to disable certain fields in the form of a calculation with a checkbox for the fields.

    In Canada, we have taxes

    I create a form that allows them to calculate a total

    Shema-pdf-form.gif

    I need to be able to turn off all of those taxes to participate in the calculation and to their field visible should be 0

    I was thinking about using a check box (when the checkbox is enabled (Yes) the tax is calculated, unchecked (Off) the tax is not calculated and visible field should show 0 or anything...)

    I really need help on this one, I am a complete newbie...

    Note that the second tax is calculated on the sum of what the first tax Add (tax first is pan-Canadian tax (all provinces).

    The second tax is never only use (Quebec only (in addition to one Canadian)

    Sometimes to sell outside Canada - no tax at all is calculated...

    What should I do?

    Yes, it's just the JS...

  • A SWF to stop when the canvas is hidden

    Hi - I have a few really really simple viewstack that gives me bad.

    The idea is that a different swf is deposited in each canvas of the viewstack, will be active when the display is active and dismantled when the view becomes hidden. Currently, funds sovereigns loading as planned, but audio continues to play even after the view is hidden.

    Not hideEffect, event mask.

    ...

  • Ignore the validation for required fields when you navigate to other tabs

    I have 2 tabs in my application. In the 2nd tab, I save a command button and the 3 required fields. I've added my validation to my managed bean method, for example:

    < af:inputText id = "MyField", validator = "{#myBean.validateField} ' < / af:inputText >"

    The validation works well.

    The problem is, as these 3 fields are required fields in my 2nd tab, so I left blank for these 3 fields and try to navigate to my 1st tab, I got validation of ADF error, saying: "you must enter a value.

    I don't even click the button Save, why I get the validation error.

    I tried to put SkipValidation = "true" in my page for my 2nd tab definition file, it does not work.

    Please advise and thank you.

    Hello

    I think that you should seek immediate ownership of your tab (showDetailItem or perhaps panelTabbed) and set the value to true.

    Kind regards

    Sébastien

  • Need to disable closed captioning when the play bar is hidden

    Hello.

    I've almost finished with a school project for my certification ID but have a problem.  I use buttons to navigate in the lesson, but I have a section where the learner has to see a demo.  I have the PlayBar hidden on button slides but show on the slides in demo so the learner can pause the demonstration if necessary.  I also added closed captioning so that the learner can read text if a hearing or there is a problem with the audio.

    Everthing works fine except when the demo is completed, the PlayBar is hidden in the next screen, but if the learner has turned on captioning, the CC shows text box again.  Is anyway to automatically turn off captioning after the last slide in the show?

    Thank you

    The f

    cc.jpgcc1.jpg

    There is a system variable called cpCmndCC that you can switch from 1 to 0 using advanced Actions (slide enter) to turn off the CC box.

  • 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.

  • Can someone help me with a Code that allows you to hide all but the first few fields when the form opens

    My form has a section (subform) on top that is always open and then underneath it is dynamic and I want some subforms and sections to open based on users to input. I use action Builder to open the screen and have all the fields that are hidden, but I have too much subforms and must hide individually all subforms. Is there a code that allows you to hide all fields for me when the form opens, and then I can use action Builder to open just what I need based on a drop-down list button or radio?

    Thank you!

    Hello

    Using LockAllFields of Paul's example, you could place the JavaScript code within the root node docReady event (normally 'form1').

    Please note that the last line is the presence of one of the subforms to visible return. Let's call it ShowThisSubform.

    // Declare some variables
    var allChildElements;
    var intNumElements;
    var currentElement;
    var j;
    
    // Get all the child nodes of the parent element (the root node/"form1")
    allChildElements = this.nodes; // "this" will use the element where the script is placed
    
    //Total number of element in the object
    intNumElements = allChildElements.length;
    
    // Loop through all the child elements
    for (j=0; j< intNumElements; j++) {
         currentElement = allChildElements.item(j);
         // If the element is a subform we'll hide it
         if (allChildElements.item(j).className == "subform") {
              allChildElements.item(j).presence = "hidden";
         }
    }
    
    // Show one of the subforms
    ShowThisSubform.presence = "visible";
    

    Niall

  • Add the date and time to a text field when the form is submitted

    Is it possible to add the date and time to a text field where the user is clicking the button of form submit?

    I created a custom send form button and do not use the distribution process to collect the results and would like to have a time stamp of when the form has been sent.

    Thank you!

    Sure. Before your submit order add a command run JavaScript with this code:

    this.getField("SubmitDate").value = util.printd ("mm/dd/yyyy hh: mm", new Date());

    Change the field name or date that required such boss.

  • 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
    .
    .
    .
    
  • How can I fill a date field when the document is signed?

    I have 4 fields of digital signature in a PDF form.  Next to each signature is a field of date (format dd/mm/yyyy).  I would like it so when a user registers the signature box that fills the date next to her field with today's date, then change to read only (so it cannot be changed).

    In Adobe Acrobat 9 Pro, I have this form and it has the following fields

    Signature1

    Signature2

    Signature3

    Signature4

    DateField1

    DateField2

    DateField3

    DateField4

    Signature fields trigger a Topaz.GemSignPlus driver where the end-user will sign on an electronic signature pad.

    How do I use Javascript to detect when one of these Signature fields is populated and fill in the date in the appropriate date field?  I tried to create Boolean variables initialized as false for each field of GIS.  Then when the signature is complete, I try to change it true, but for some reason any my javascript detect that the value does nothing.

    I searched the net endlessly for this solution.  I can't believe I'm having a difficult time finding an answer.  I mean how many places you go where they ask you to "sign and date here."  Each document signature base I've ever seen also requires a date.

    In any case, here's what I have.  Functions, I have a script called JavaScript Document name populate date:

    function populatedate()
    {
    var bSignature1 = new Boolean();
    var bSignature2 = new Boolean();
    var bSignature3 = new Boolean();
    var bSignature4 = new Boolean();

    If {(bSignature1)
    DateField1.value = util.printd ("d/m/yyyy", new Date());
    }

    If {(bSignature2)
    DateField2.value = util.printd ("d/m/yyyy", new Date());
    }

    If {(bSignature3)
    DateField3.value = util.printd ("d/m/yyyy", new Date());
    }

    If {(bSignature4)
    DateField4.value = util.printd ("d/m/yyyy", new Date());
    }
    }

    In each signature field, I on the signing tab "this script is run when the field is signed:

    var bSignature1 = new Boolean (true);

    I'm changing to true see.  My thought is that if it is true that DateField1.value should print jj/mm/aaaa in her building in the Date() function.

    But maybe I do not get the correct context.  I'm new to Javascript in Adobe.

    It's a round script. Why not just use the signature signature of script to set the value of the field date? The correct syntax for this is:

    this.getField("DateField1").value = util.printd ("d/m/yyyy", new Date());

  • Question required fields for the click of a button "return"

    Hello

    I have a custom page that has all of the required fields. I have the button to navigate to the previous page page. But a user is unable to access the page back unless all fields are entered. How to override this situation?
    I catch the properties of all the elements on the page and make their property required to false before you navigate back and make them necessary by coming to this page. But I was wondering if there is a better way.

    Thanks in advance.

    1. Select the back button
    2. set ' disable validation on the client side ' true
    3. set "turn off validation server-side ' true

    Now this does not block the user to navigate back.

    Prasanna-

  • Highlight field when the table row is selected

    I have a table view with a couple of lines in there. such a line has a white and gray text. now, when I select the line, the background turns blue to indicate the selection. the problem is that can not read the grey-blue text correctly. you have an idea on how to change the color when this specific line is selected? I need somehow to be able to receive the event in my implementation of custom label to react accordingly on the selection within my method of painting. Thanks, remo

    well, the thing is a little naughty...

    It takes extends a TableController and overwrite the navigationMovement (...) method that acts as an event listener.

    Then you can get the fields and the model of line data and access.

    int rowNr = (getView()) .getRowNumberWithFocus () (TableView);

    Model DataTemplate = (getView()) .getDataTemplate (rowNr) (TableView);

    Scope of fields [] = template.getDataFields (rowNr + 1); I want to get the next line!

Maybe you are looking for

  • Updated Snow Leopard to Yosemite now (may 2016)

    -After years of use of Snow Leopard on my iMac 27 "10.6.8, I've upgraded directly to El Capitan. -No problem to do so. -When you use El Capitan, I encountered several problems (unsupported software and hardware). -J' therefore decided to install Yose

  • Video/graphics and Windows7 drivers

    Hi all I upgraded to Win7 32bits (Professional), of Vista provided on the new Portege M750-11r. I can things t run like second life, as it says that the video card drivers are outdated or not supported.When I check the display details it seems just t

  • Ceased to be able to connect to msn

    Not sure if I'm in the right forum, but I hope I am. I suddenly stopped being able to connect to msn no matter what I tried someone can advise anything you please. April cordially

  • iPhoto App does not open on Mac Mini

    Cannot open iPhoto on my Mac Mini running OS X El Capitan 10.11.2 The application on the dock has the reduced/white circle above the icon, as saying: "not available". When I click on iPhoto, I get this message: "the version of iPhoto installed on the

  • Obtaining of row and column of a table element

    Hello I have a table of 24 rows and column 24 giving me a total of 576 items. How can I get the row and column of a particular element in a table in LabView. For example if I write to item 127 How can I get the column and line item 127 is located. Ki