how to add pages conditionally

F

Francesco

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
 
G

Greg Collins [InfoPath MVP]

What do you mean by "add pages"? Are you talking about printing, fields, views, or what?

--
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
 
F

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
out, let's say field3 and field4.
If the currency field is < 5000 I just need the one page Form with field1
and field2.
 
F

Francesco

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

Francesco said:
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.

Greg Collins said:
What do you mean by "add pages"? Are you talking about printing, fields, views, or what?

--
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
 
G

Greg Collins [InfoPath MVP]

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.

--
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

Francesco said:
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.

Greg Collins said:
What do you mean by "add pages"? Are you talking about printing, fields, views, or what?

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top