Reset the hidden fields

My form begins with a form of sub header with checkboxes. The user controls a box they need and its corresponding subform is displayed. Works fine, right? The problem comes when it comes to reset the fields. I hit the reset button and all data will be deleted, HOWEVER the hidden fields are always visible? How to reset it it ALL to look exactly as it is when you first open? Thank you

You need to explicitly reset the values of the hidden fields. Go to the click event of the reset button, then set it to null in hidden fields. For example,.

Form1.Page1.ResetButton1::click - (JavaScript, client)

xfa.host.resetData ();

TextField1.rawValue = null;

Steve

Tags: Adobe LiveCycle

Similar Questions

  • reset the hidden fields on the 'clear form '.

    I have a form that changes the values of some fields to display (or can define read-only) when different options are selected. I have provided a 'Clear form' button that executes a javascript script that resets the fields to their original state, but users have always been able to select clear 'form' in the menu, which bypasses the script and can leave the ├a respect State form.

    Is it possible to prevent that the 'Clear form' menu being selected, or override its function or run one of my functions when it does? I've never had a chance to find a solution, and this form should be reset properly in all conditions that a user can meet.

    Mark,

    How about something like this. Set up a hidden field that when allowed runs your Reset routine. I think that the last field that has been added is the last field to reset. You can initialize its value and call your Reset routine in its Validate event if its value is blank, and then reject the change, so it is not actually get deleted.

  • Need a script to display the hidden field if number = 568845

    Hi all

    Using Acrobat Pro 9.1 on iMac with OS 10.6.8

    I am working on a form to fill out and need a script to display a hidden field when a button is clicked.

    I've set up a numeric field to type a number, and the hidden field is "text1".

    Now, I need a script to the button open only the hidden field, if the field number = 568845

    In this way the customer can fill in the code and then show and type in the field.

    Any help would be appreciated.

    Ron

    Given that you use it by a button, you can't use event.value because a button has no value, and in any case, you want to check the value of another field. So this place like your button MouseUp event (of course, you have to adapt the name of the text field...):

    If (this.getField("Text1").value == "568845") {this.getField ("Hidden_Field") .display = display.visible} else {this.getField('Hidden_Field').

    display = display.hidden}

  • cfformitem type = & quot; script & quot; : how to set the value of the hidden field?

    I have a simple test form that contains a cftree and some fields of seizure/hidden. Whenever a tree node is selected, I want to change the values of the fields of entry/hidden to some node is selected. Pretty simple, but I can not understand how to change the values of the hidden fields.

    Load the form, select "ItemA" and click on submit. Do not change the values of the hidden form fields. They are always "not defined". What is the correct syntax to change the value of the hidden field?


    The correct syntax is

    myForm.theID = 'theID = "+ valueString;

    Ken

  • OBIEE, the hidden fields on graphs

    Hello

    Can I put a hidden field in a chart?

    (this option exists for the table)

    I use a sort field, but I'm not as part of the data of the graph.

    Thank you.

    Yes you can.

    Make the column hidden in the criteria tab and use it in your chart, just slide it into place as you want.

    You just need to pay attention to the order of the columns if you want to sort by one hidden.

    And you see it on the screen... it is hidden.

  • Reset the signature field

    I'm having a problem with resetting my signature fields. It seemed to work very well in reader X but not XI.

    I have a form with several signature fields, and every time that a signature field is signed, then it blocks in some areas. Now when I reset these fields of signature (via a button), it resets the field itself but does not open the fields that he initially locked.

    Any help with how to unlock these fields as well?

    When a domain is locked when a signature field is signed, the field is set read-only. You can cancel it by setting the property read only fields on false:

    getField("text1").readonly = false;

    You will need to do this for each field. If you use a naming hierarchy for the fields, so that all those that you want have the same prefix (for example, group1.name, group1.address, etc.), you can set them all with a single statement:

    getField("group1").readonly = false;

  • Non-Null Validation step does not work with the hidden field?

    Hello

    I have a field that is a selection list.

    I have another field, which is also a selection list, but which is masked by the dynamic loading of the page Action (if the value of the first field is 'False').

    If the value of the 1st select list is 'True', the 2nd selection list appears and the user must select a value.

    I have created a "Item Not Null" Validation, because I need to force the users to select the value in the 2nd, select list.

    However, the Validation does not work! I guess it's because the 2nd selection list is hidden / display by dynamic action!

    The 2nd selection list is null to display the value 'NULL '.

    How can I solve it please?

    It has nothing to do with the dynamic Action.

    Try to delete "NULL" in the value of the Null display field. Just leave it blank.
    In this case, "specified element is NOT NULL" must be selected in the Validation.

  • The hidden fields and multiple responses

    Hello

    I have a form that consists of drop down lists and hidden fields, depending on the response to the drop-down list, then a hidden field appears. I am bad at work is how the code if a user answers Yes to the first drop-down list, this then invites a fall lower, who once answered will 3 more open fields.

    Example of

    Question 1 individual or company answer person of company

    Question 2 is a new client yes/no

    (if the user has answered no then this can encourage an another series of questions according to what the user has answered the question 1)

    For individual would ask the question

    Question require us proof of address

    For the company would ask the question

    Question require us registration of the company

    How can I hide the fields initially and show them only according to the combination of the answer.

    Any help would be appreciated

    Thank you

    I created a simple example for you. Note that the code that shows and hides is about the e eexit event of the DDLists. I put the parts of the evidence of address in a subform, and I have to hide the subform to hide all of its child components... I don't have to hide each component of the object of the evidence in the record. Also, the form must be saved under Dynamics for the presence changnes is taken into account.

    Hope that helps

    Paul

  • The hidden fields and deleted context

    I created a form with text fields that are visible or hidden depending on the selections that you made in the previous two menu drop-down lists. The user of the form has fields of different type based on their choice text. The problem I have is that I want only to preserve the content of the visible field and do want the contents of the visible field to be saved in the XML of the .csv file. In other words - if they make another choice in the drop-down lists to "activate" the different text fields - the text in the previously visible text fields would be deleted. I'm sure that logic has something to do with "If presence = hidden, then value = null", but I'm completely new scripting in LiveCycle and don't have no idea how to write this.

    I don't see a way to view a PDF file, but I inserted my code below.

    ----- form1.#subform[0].VariableLocation::exit: - (JavaScript, client) -----------------------------
    
    //Clear out the StaticLocation DropDown list
    StaticLocation.rawValue = "";
    StaticLocation.clearItems();
    
    
    switch (this.rawValue)
    {
    case "Top Center  ":
    StaticLocation.addItem("Lower Right");
    StaticLocation.addItem("None");
    break;
    
    case "Lower Right":
    StaticLocation.addItem("Top Center  ");
    StaticLocation.addItem("None");
    break;
    
    case "Top Center":
    StaticLocation.addItem("Lower Left");
    StaticLocation.addItem("None");
    break;
    
    case "Lower Left":
    StaticLocation.addItem("Top Center");
    StaticLocation.addItem("None");
    break;
    }
    
    
    
    //TextFields 1a-4a
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1a.presence = "visible"; 
    }
    else
    {
         TextField1a.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2a.presence = "visible"; 
    }
    else
    {
         TextField2a.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3a.presence = "visible"; 
    }
    else
    {
         TextField3a.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4a.presence = "visible"; 
    }
    else
    {
         TextField4a.presence = "hidden"; 
    }
    
    
    
    //TextFields 1b-4b
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1b.presence = "visible"; 
    }
    else
    {
         TextField1b.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2b.presence = "visible"; 
    }
    else
    {
         TextField2b.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3b.presence = "visible"; 
    }
    else
    {
         TextField3b.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4b.presence = "visible"; 
    }
    else
    {
         TextField4b.presence = "hidden"; 
    }
    
    
    
    
    
    //TextFields 1c-4c
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1c.presence = "visible"; 
    }
    else
    {
         TextField1c.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2c.presence = "visible"; 
    }
    else
    {
         TextField2c.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3c.presence = "visible"; 
    }
    else
    {
         TextField3c.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4c.presence = "visible"; 
    }
    else
    {
         TextField4c.presence = "hidden"; 
    }
    
    
    
    
    
    //TextFields 1d-4d
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1d.presence = "visible"; 
    }
    else
    {
         TextField1d.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2d.presence = "visible"; 
    }
    else
    {
         TextField2d.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3d.presence = "visible"; 
    }
    else
    {
         TextField3d.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4d.presence = "visible"; 
    }
    else
    {
         TextField4d.presence = "hidden"; 
    }
    
    
    
    
    //TextFields 1e-4e
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1e.presence = "visible"; 
    }
    else
    {
         TextField1e.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2e.presence = "visible"; 
    }
    else
    {
         TextField2e.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3e.presence = "visible"; 
    }
    else
    {
         TextField3e.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4e.presence = "visible"; 
    }
    else
    {
         TextField4e.presence = "hidden"; 
    }
    
    
    
    
    
    //TextFields 1f-4f
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1f.presence = "visible"; 
    }
    else
    {
         TextField1f.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2f.presence = "visible"; 
    }
    else
    {
         TextField2f.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3f.presence = "visible"; 
    }
    else
    {
         TextField3f.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4f.presence = "visible"; 
    }
    else
    {
         TextField4f.presence = "hidden"; 
    }
    
    
    
    
    
    
    //TextFields 1g-4g
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1g.presence = "visible"; 
    }
    else
    {
         TextField1g.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2g.presence = "visible"; 
    }
    else
    {
         TextField2g.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3g.presence = "visible"; 
    }
    else
    {
         TextField3g.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4g.presence = "visible"; 
    }
    else
    {
         TextField4g.presence = "hidden"; 
    }
    
    
    
    
    
    
    
    //TextFields 1h-4h
    
    
    if (this.rawValue == "Top Center")
    {
         TextField1h.presence = "visible"; 
    }
    else
    {
         TextField1h.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField2h.presence = "visible"; 
    }
    else
    {
         TextField2h.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField3h.presence = "visible"; 
    }
    else
    {
         TextField3h.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField4h.presence = "visible"; 
    }
    else
    {
         TextField4h.presence = "hidden"; 
    }
    
    
    
    
    //TextFields 1i-4i
    
    
    if (this.rawValue == "Top Center")
    {
         TextField2i.presence = "visible"; 
    }
    else
    {
         TextField2i.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Left")
    {
         TextField1i.presence = "visible"; 
    }
    else
    {
         TextField1i.presence = "hidden"; 
    }
    
    if (this.rawValue == "Top Center  ")
    {
         TextField4i.presence = "visible"; 
    }
    else
    {
         TextField4i.presence = "hidden"; 
    }
    
    if (this.rawValue == "Lower Right")
    {
         TextField3i.presence = "visible"; 
    }
    else
    {
         TextField3i.presence = "hidden"; 
    }
     
    
    

    .

    Yes

  • How to reset the Status field and delete ToDo list outside the user interface?

    All, morning

    HR 802 generating WebHelp.

    I made use of the status field and ToDo List in the past. For my next release aid, I would like to reset these fields for all the subjects, so I can still have accurate reports as subjects of creation/revision of the final course.

    Is it possible to do without opening each topic in the user interface and compensation/change manual fields? (I thought to delete all fields of ToDo and recreate them, but thought that there is an easier way.) This information appears in each section or in a separate file?

    Thank you

    Patrick

    Hi Patrick

    1. Close all topics that can be opened in the editor.
    2. Open the pod of the list of topics.
    3. Select all subjects.
    4. Right-click and choose Properties from the subject.
    5. Click the status tab.
    6. Modify if needed.

    All subjects should change to reflect the new status and the task list settings.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • Help with the hidden field formula

    I have a table in the Acrobat document:

    1 box = data of registration of the user

    Box 2 = user registration data

    Box 3 = user registration data

    Box 4 = (box 1 * Box2 * Box3)

    Box 5 = the user's registration data

    Box (box 4 - box of 5) (6)

    The problem:

    During this table opens in the document all the fields must be blank for printing purposes.

    However, all fields are for a person to enter data, and then print to convenvience.

    What I need help on, creates a script that allows the box 4 and 6 box remain empty but also to fulfill their function and display a value of 0 if the service is validated as true.

    Example:

    Zone 1 = 2

    Area 2 = 2

    Zone 3 = 0

    Box 4 = (box 1 * Box2 * Box3) = 0

    Box 5 = 0

    Box 6 = (box 4 - box of 5) = 0

    Can someone help me with this? Let me know if other explanation or screenshots are needed.

    Thank you.

    You say that you only want to show a zero value in the computed fields if all entry fields are not empty, and the calculation result is zero? If so, a custom for the first calculation script could be something like:

    (function () {}

    Get the values of field as strings

    var v1 = getField("Box_1").valueAsString;

    var v2 = getField("Box_2").valueAsString;

    var v3 = getField("Box_3").valueAsString;

    If (v1 & v2 & v3) {}

    Perform the calculation

    Event.Value = v1 * v2 * v3;

    } else {}

    Event.Value = "";

    }

    })();

    The script for one another might be:

    (function () {}

    Get the values of field as strings

    var v1 = getField("Box_4").valueAsString;

    var v2 = getField("Box_5").valueAsString;

    If (v1 & v2) {}

    Perform the calculation

    Event.Value = v1 - + v2;

    } else {}

    Event.Value = "";

    }

    })();

  • reset the textInput field

    Hello

    I create a data entry with two screens.you application can enter name textInput field in the first screen and second appears on the screen
    a button ' save following "and the application go to the one screen when you click the button, then you can add the next new record.

    My question is that the textInput field have always given to the last time, when I go to the screen the next time. I hope that the textInput field is empty when I enter the first screen, the second screen. Please let me know how to proceed. Thank you

    my code is here:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
    < mx: states >
    < name mx: State = 'results' >
    < mx:RemoveChild target = "{nameInput}" / >
    < mx:SetProperty target = '{label1}' name = value 'x' = '129' / >
    < mx:SetProperty target = "{label1}" name = value "y" = "62" / >
    < mx:SetProperty target = "{label1}" name = "text" value = "data is saved" / >
    < mx:SetProperty target = "{label1}" name = "width" value = "130" / >
    < mx:SetProperty target = "{button1}" name = 'label' value = "Next record entry" / >
    < mx:SetProperty target = "{button1}" name = "width" value = "177" / >
    < mx:SetEventHandler target = "{button1}" name = "click on" Manager = "currentState =" "/ >
    < / mx: State >
    < / mx: states >
    < mx:Label = "98" x = "67" text = "" name: "width ="61"id ="label1"/ >"
    < mx:TextInput = "167" x = "65" id = "nameInput" / >
    < mx:Button = "129" x = "118" label = "Save" id = "button1" width = "170" click = "currentState = 'results'" / >

    < / mx:Application >

    In the code below, I have changed the SetEventHandler:


    http://www.Adobe.com/2006/mxml"layout ="absolute">














  • Hidden fields are visible in the new instance of the subform.

    Hi all.

    I have the following problem:

    I have a subform with a check box and a text field.  When the box is checked, the text field is visible.  When it is disabled, it is hidden.

    I also have a button which adds another instance of the subform.  When I click and add another subform, the masked text field is visible in the new instance instead of stay hidden until the box is checked.  Also, when I add the new subform instance and select the check box, the hidden field becomes visible at first to the subform.

    Here is what I use to hide and show fields:

    If (this.) RawValue == 1)

    (form1.subform1.textfield1.presence = "visible");

    on the other

    (form1.subform1.textfield.presence = "hidden");

    The foregoing is in the initialize event and change.

    I would really appreciate help to learn how to keep each instance does not affect another, as well as the way to keep the field hidden in newly added instances of the subform.

    Thanks in advance.

    J

    Hello

    You can add the action to the checkbox for the workflow. To do this, you can right click on the checkbox under the hierarchy Panel and then click on 'Add Action '. Also if you want the field to be hiddedn in the new instance and then at design time, you must set the property of as hidden control.

    Steps to get the workflow.

    1. make a right click on the checkbox control--> click Actions--> add an Action

    2. select in the drop-down list. When the check box is cleared.

    3 set the visibility of the textfield to hidden.

    4 click Add new action as indicated below.

    5. select in the drop-down list. When the box is checked.

    6 set the visibility of the textfield visible.

    7. click OK to create the action and close the window of action.

    To set the TextField to select hidden textfield and open its property of the object. Set the value of the presence as hidden.

    ************

    Please download the https://acrobat.com/#d=hM8oyP3be4O3HRBt14CkYg sample file

  • Issue the hidden rich text field

    Hey all,.

    I am facing another issue, and this time it's the hidden form field. I've got the coldfusion, rich on one page text editor and when submitted to preview in another. However, in order to insert the record later I hide values initial form of hidden fields. All values are fine except for the rich text editor, as it gets out in its entirety and is not hidden at all.

    I guess that this behavior is caused by the text form and one of its closing entire field hidden tags.

    Any thoughts on how to store the rich text in the hidden field?

    see you soon,

    Simon

    Assume that the richText field is called myText. Then, in the action page, you can hide its content with

  • How to insert the current date in a hidden field?

    I have a form of update of personal information.  There is a field called 'dateupdated' that I would have on the form as a hiddent field that gets automatically the most recent date (now) in the table.

    No idea how I can configure the hiddden in the current date field?

    Thank you, Dennis

    Its good to know the TIMESTAMP data type.

    I do it in a different way.

    Add this code in the value of the hidden field date

Maybe you are looking for