Expand my Community achievements bar.

SOLVED

Autopopulate a pricing field

Avatar

Former Community Member

Hi all!

Have a quandry, very new to using LiveCycle but I'm trying to learn it to start creating more interactive forms for coworkers and customers. My problem is this:

I'm trying to create an order form that is for one specific product. If any information is filled in on one field representing the customization options, I would like the price field to automatically fill in a set value so that value can be totaled at the bottom of the form.

Any solutions would be greatly appreciated!

Cheers,

Harlan

1 Accepted Solution

Avatar

Correct answer by
Level 8

I'm not completely sure I understand your question but are you saying that if Field1 has text in it of any kind, the price field would set itself to a set value?

If so,

In the calculate event of your price field:

if (Field1.isNull) then

     null

else

     50     //<---Your set value

endif

I'm assuming its just one field for each one price field.

Kyle

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

I'm not completely sure I understand your question but are you saying that if Field1 has text in it of any kind, the price field would set itself to a set value?

If so,

In the calculate event of your price field:

if (Field1.isNull) then

     null

else

     50     //<---Your set value

endif

I'm assuming its just one field for each one price field.

Kyle

Avatar

Former Community Member

That's exactly what I meant! Thank you. I might not have communicated properly. Hectic time of year with twenty+ projects at once! I appreciate your help so very much!

Harlan