Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to clear form fields on page load?

Avatar

Former Community Member
Hi

I am trying to clear all the form fields when the page loads. I added this script yo one of my print buttons -

xfa.host.resetData("")

And it worked.

However I now want all the fields to be deleted when the page loads. Any idea what the code should be?

I was trying -


function addLoadEvent()

{

xfa.host.resetData("");

}

xfa.host.onload=addLoadEvent;



But it did not work.

Any help would be greatly appreciated.

Regards

Judy
0 Replies