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

Tags: Adobe LiveCycle

Similar Questions

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

  • Set the focus on the specific field when the form opens

    I use Acrobat Pro XI.  I would like for a specific domain focus when the form is opened.  Is there a form parameter or the Javasprict that should be used?  Where add Javascript code so that's the direction I must go?  Thank you.

    Yes, it can be done using a script. Go to tools - JavaScript - Document JavaScripts and enter this code (adjust the name of the field as your file, of course):

    this.getField("FieldName").setFocus ();

  • How can I get rid of zero in a calculated field when the form is empty?

    I made a form that prompts the user to enter data for specific years.  At the top of the form, the user places in the current year, i.e. 2000.  Column copy this year here, the second column adds five years and the third column adds 10 years.  I managed to create a simple script for each of these columns (so that when 2000 came; columns a, b, and c appear as 2000, 2005 and 2010) but when the form is empty a zero appears in the first cell, a 5 appears in the second cell and a 10 appears in the third cell.  I want the completely empty form so as to not confuse the person when they begin to enter data.  How can I write a custom script to eliminate the numbers in calculated fields?

    I would use a script for calculating customized for each of these fields. Something like:

    Calculation for reference year script

    (function () {}

    Get the value of the WCPYear field

    var v = getField("WPCYear").valueAsString;

    Set the value of this field. The value empty if WCPYear is empty

    Event.Value = v? v : "";

    })();

    Calculation script for field goal 5 years

    (function () {}

    Get the value of the WCPYear field

    var v = getField("WPCYear").valueAsString;

    Set the value of this field. The value empty if WCPYear is empty

    Event.Value = v? +v + 5 : "";

    })();

    Calculation script for the 10-year target field

    (function () {}

    Get the value of the WCPYear field

    var v = getField("WPCYear").valueAsString;

    Set the value of this field. The value empty if WCPYear is empty

    Event.Value = v? + v + 10 : « » ;

    })();

  • 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

  • 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

  • Fields disappear when the form is saved

    I have a RMA form that was created that we are having problems with. It is set up to serve the 3 potential situations.

    1 back in stock

    2 return to rebuild

    3. other

    The form is set to where the user selects one of the three options in a menu drop-down, and that the selection and then makes visible some relevant areas to this choice. This part of the form works fine. However, when the form is saved, the fields disappear. If you select the appropriate choice in the drop down, fields reappear with height of information yet on the list.

    Is there an option that must be selected which will keep the visible fields after the backup? The current workaround is to print to PDF, but I find many people who do not know how, or are not ready.

    Any ideas?

    I got rid of the action of generator of action that produces more than 50 lines of code. I also wrapped your groups for return and reconstruction in subforms. So now instead of reference each object, simply reference the two subforms.

    http://www.fieldeffecttechnologies.com/AdobeForums/RMA%20FORM.PDF

    Next, you need to add the ability to add rows dynamically!

    Kyle

  • Will begin to change States of field to the form

    Hey there!

    Our friend Srini taught me how to change the States of fields when you click an object, using a statement like the following:

    myField.access = "readOnly";

    Well, now I would like to know how to set the fields and the other States of the objects and so, for example, as readOnly by default when the form is open.

    Possible?

    Where to insert the code?

    Thank you!!

    Marcos

    No code is required... .click on the object in question and the object palette click the value tab and the 1st drop down menu called Type will have settings that allow you to set the initial state of the field.

    Paul

  • How to edit pdf file (in indesign) without having to re-export then and redo all the fields of the form and formatting?

    How to edit pdf file (in indesign) without having to re-export then and redo all the fields of the form and formatting?

    Edit PDF files in InDesign is not a good idea. If the file was originally exported ID, then change the original and then create a new PDF file.

    Open an old, and then use the command replace Pages to insert the new pages on the 'old'. The fields that you have already created will remain in place when you do this.

  • How to NOT send some form data when the form is submitted

    Hello

    I created a PDF form with radio buttons in the Group and the boxes. When I the form of data, such as values using the submit by e-mail button to send form data as XML or merge data into a spreadsheet files, I'll see the data values for radio buttons and checkboxes.

    What I want here is to don't get the data values for some controls such as the boxes option, but no other controls like check boxes, in the XML or Excel worksheet after submission of the form. I know how to hide the controls in the form, but I have to the visible and active boxes on the form.

    Is there a way to hide or do not send form data when the form data is submitted?

    Thank you

    Sam

    Hi Kyle,.

    That's exactly what I want! Once I have not selected any data binding, the field is in shape and active, but when submitted as XML or it merge with a spreadsheet, the field is gone.

    Forgive me if I didn't my self clear in my question. Answer you is straight to the point.

    Thank you very much!

    Sam

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

  • the fields on the form appear

    Hello

    in a database table, I have 6/10 fields, while I show you 3/4 fields on the form.
    There are 5 blocks from different tables.

    Is it possible when I click on the button in a field, I get a msg with all the fields that are plurarite of this block.

    for example...
    table MYTABLE has 10 fields for example A, B, C, D, E, F, G, H, I etc etc...
    on the form, I'm showing A, B, C, D

    When I double CLICK on any one of the fields he shows me a msg like "A B C of (the name of the fields).

    Thank you

    TRY this
    Call it in iblock level when double click
    It will show you all the items that are placed on the canvas.

    PROCEDURE p1 IS
    * Name1 varchar2 (30); *
    * name2 varchar2 (2000); *
    BEGIN
    Name1: = get_block_property (:System.cursor_block, first_item);
    loop
    * exit when name1 is null; *
    * if get_item_property (name1, visible) = "TRUE" THEN *.
    * name2: = name2. Name1; *
    * else *.
    * null; *
    * END IF;     *
    * name1: = get_item_property (name1, nextitem); *
    end loop;
    message to (name2);
    Name1: = NULL;
    END;

  • Block of detail automatically updated when the form is saved

    Hello

    I have a form with 2 blocks of tabular data (1 master and 1 retail).

    The retail block also contains a non-base of data element, a checkbox control. User can check or uncheck this box for each record in the detail block.

    My problem is, when the user changes something in the main block and saves (by pressing F10 or by clicking on save button), box block of retail values are lost.

    For a test, I created a trigger validation key at the level of the main block: I iterates over the detail records to collect values of checkboxes before doing a commit_form (the goal was to restore checkbox values right after), but even at this stage the check boxes are all null as if the retail block has already been re-populated and of course non-base of data items reset before the trigger validation key is enabled.

    What Miss me. It is a detail of a relationship block master / detail is updated when the form is saved standard? What are the alternatives to keep/restore my values of checkboxes in this situation?

    Thanks in advance for your help

    L0rd says:

    Hello

    I have a form with 2 blocks of tabular data (1 master and 1 retail).

    The retail block also contains a non-base of data element, a checkbox control. User can check or uncheck this box for each record in the detail block.

    My problem is, when the user changes something in the main block and saves (by pressing F10 or by clicking on save button), box block of retail values are lost.

    For a test, I created a trigger validation key at the level of the main block: I iterates over the detail records to collect values of checkboxes before doing a commit_form (the goal was to restore checkbox values right after), but even at this stage the check boxes are all null as if the retail block has already been re-populated and of course non-base of data items reset before the trigger validation key is enabled.

    What Miss me. It is a detail of a relationship block master / detail is updated when the form is saved standard? What are the alternatives to keep/restore my values of checkboxes in this situation?

    Thanks in advance for your help

    Check any Execute_query code in your form, which produce this issue.

  • PHP form script is missing from the web server or PHP is not properly configured on your web hosting provider. Help - I get this message on my site when the form is filled out and you press send... Check if the form PHP script has been downloaded correctl

    PHP form script is missing from the web server or PHP is not properly configured on your web hosting provider. Help - I get this message on my site when the form is filled out and you press send... Check if the form PHP script has been downloaded correctly, contact your host about the configuration of PHP.

    Hi Graham,

    If you, please add your site to this link ( http://my-site.com/scripts/form_check.php ) and make sure that all green checkmarks are appearing. If they don't, let us know what errors you seem to receive and include the link to your site.

    In addition, check out this guide on the forums of Muse troubleshooting: Troubleshooting Muse form used on the servers of third party Widgets

    I hope this helps!

    Emily

  • How can I change the license to CS6 to a new computer to be updated when the former disappeared.

    How can I re CS6 license to a new computer to be updated when the former disappeared. I work in a secure facility and all computers do not have an internet connection. I'm used to be able to activate offline. but now activation invalid response code invalid serial No. says offline. I was on a chat with someone at Adobe, I guess, and they said that they did not support offline activation more. So, if I can't activate my copy 7 cs6 my company is thousands of dollars.  Can anyone help

    Joe

    Consider that it is licensed to the company? If so your IT people should have a way to apply activation during the installation code, but my IT group did this, so I don't really know details. I know that Adobe has stopped support for licenses of the company last June, I think. However, you should be able to get an answer on how to do this, since you have paid for the software. I will pass this message on the forum of company CS to see if anyone knows more than the person with whom you spoke.

Maybe you are looking for