Wednesday, July 20, 2011

How to clear a InfoPath Form with a click

when i design a fillable form with InfoPath 2010. the user ask me if i can add a button. that they can clear a form

you can setup a rule to handle clearing all the fields or set those fields with empty value.

 first you can select the button that will handle the clear all fields event.


















click on the New Dropdown List control to select  Action from the dropdown list.






















then you can select Set a Field's Value from Add DropDown List which Beside Run These Actions:

click on the button beside the text box under Field Label















select the fields that you need to clear






















leave this Value Empth.

you can repeat the above steps serveral times for multiple fields actions.


after you can complete the run setting, the button will be able to clear all the fields that the rule had been set.

3 comments:

  1. perfect solution.........but it is good when field's are fewer,lengthy for larger fields,but also applicable for large fields

    ReplyDelete
  2. Thank you sir, this is exactly what I ve been looking for

    ReplyDelete