How about adding a rule to your Return to Search button that sets the fields
on the Search view to their initial values? Create a rule on the button,
select "Set a field's value", select the field on the Search view you would
like to reset, and enter "" (an emptry string) for text fields or enter a
formula if desired for other types of fields.
Regards,
S.Y.M. Wong-A-Ton
> Hey,
>
[quoted text clipped - 22 lines]
>
> Any help is greatly appreciated!
ridawg - 14 Dec 2005 16:20 GMT
Thanks for this idea but I already tried that. This will set the query fields
back to their initial values but it doesn't actually clear the results of the
initial query or prevent the my new record being returned in my results
section. I did find a solution that solves this problem. Basically using a
button with it's action set to New Record. After entering a new record and
submitting it, you can then click on the return to search button (with it's
action set to new record) and it will by default switch to the form's default
view and clear the query results fields (what infopath calls datafields).

Signature
-ridawg
> How about adding a rule to your Return to Search button that sets the fields
> on the Search view to their initial values? Create a rule on the button,
[quoted text clipped - 31 lines]
> >
> > Any help is greatly appreciated!