I have an InfoPath form with a currency field. According to the value of this
currency field I have to add pages to the form.
For instance if the currency field is between 5000 and 10000 I need to add a
page with some info, if it is between 10000 and 20000 I need to add 2 pages
(the same page I had before plus another one) etc.
can anybody give me some suggestions?
Thanks a lot in advance
What do you mean by "add pages"? Are you talking about printing, fields, views, or what?

Signature
Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com
I have an InfoPath form with a currency field. According to the value of this
currency field I have to add pages to the form.
For instance if the currency field is between 5000 and 10000 I need to add a
page with some info, if it is between 10000 and 20000 I need to add 2 pages
(the same page I had before plus another one) etc.
can anybody give me some suggestions?
Thanks a lot in advance
Francesco - 24 Apr 2006 07:49 GMT
I have a one page Form with field1 and field2.
If the urrency field is > 5000 then I need to add other fields to be filled
out, let's say field3 and field4.
If the currency field is < 5000 I just need the one page Form with field1
and field2.
> What do you mean by "add pages"? Are you talking about printing, fields, views, or what?
>
[quoted text clipped - 6 lines]
> can anybody give me some suggestions?
> Thanks a lot in advance
Francesco - 24 Apr 2006 13:00 GMT
conditional formatting seems to give me some possibilities... however what I
wrote in my previous post is a very simplified situation. I need many fields
to be added and probably the best option is to use code...
Francesco
> I have a one page Form with field1 and field2.
> If the urrency field is > 5000 then I need to add other fields to be filled
[quoted text clipped - 12 lines]
> > can anybody give me some suggestions?
> > Thanks a lot in advance
Greg Collins [InfoPath MVP] - 24 Apr 2006 17:55 GMT
Yes - code gives you the most flexibility. Conditional formatting just hides existing fields. If you do not want them physically present in your form unless they are needed (i.e not just hidden in the view) then you will need to use code.

Signature
Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com
conditional formatting seems to give me some possibilities... however what I
wrote in my previous post is a very simplified situation. I need many fields
to be added and probably the best option is to use code...
Francesco
> I have a one page Form with field1 and field2.
> If the urrency field is > 5000 then I need to add other fields to be filled
[quoted text clipped - 5 lines]
>
> > What do you mean by "add pages"? Are you talking about printing, fields, views, or what?