Expand my Community achievements bar.

SOLVED

Reset button for particular pages

Avatar

Former Community Member

I would like to have a button on my 3 page form that resets pages 2 and 3 but not page 1. Can this be done?

Thanks!

Wes

1 Accepted Solution

Avatar

Correct answer by
Level 10

You should have the right path to get the somExpression...

When you start a reference_syntax with 'xfa' you must specify which property you want to access,

because you want to access you form, you must specify form as the following:

View solution in original post

26 Replies

Avatar

Level 4

It didn't work   it still resets the whole form.  Would you have time to look at the form?  Though I can't figure out how to uplode the doc

thanks!

Jodi

Avatar

Level 10

Hi Jodi,

I could have a look at it when I'll have the time today, just send a link and I'll take a look for ya

Avatar

Level 4


You are the best!! I am trying google docs.  I am not sure if it will work.  I will also send another link when it is done

Vendorinfoformpdfwinstructionstesting.pdf - Google Drive

If you go to

form1.Head.IndvsComp.Individual::click - (JavaScript, client)

On the click event the last line you will see where I am trying to do this.

else if (Individual.rawValue == "0")

{xfa.datasets.data.loadXML("<Head/>",true,true);}

you are my last hope If I can't get this to work I will have to undo each checkbox

Thanks!

jodi


Avatar

Level 4

If google docs doesn't work here is this link

https://www.obfs.uillinois.edu/common/pages/DisplayFile.aspx?itemId=141216

Avatar

Level 10

Hi Jodi,

unfortunately I was unable to remerge a part of a form... But, if what you want is just to reset the form (subform) as it was initially when the form was created

I have a reset function which returns the somExpressions of all objects which needs to be reset. Also the function is made to reset any visible/hidden object back to their original state..

Here have a look at this discussion and you can also download the form to see my function and see how it works. I'm pretty sure it will be doing the job.. hopefully

Validation / Reset Functions, easy to manipulate and to change Forms!!!!

Avatar

Level 4

Well I am glad it wasn't just me and the expert couldn't do it either !
Thank you so very much for your help and effort!

I will look at the link and see if I can make it work!

Thanks again!

Jodi