Avatar

Level 10

Hi,

There are a couple of ways to achieve this. You can change the caption of a field at runtime.

So in the mouseEnter event of Bank Account Number:

paymentMethod.caption.value.#text = "Payment Method * ";

Then in the exit event of the Bank Account Number:

paymentMethod.caption.value.#text = "Payment Method";

The only concern is that the user may get confused between fields becoming mandatory / optional, based on where the mouse is hovering at any one time.

Maybe what you want is if the field is not null then the payment method is mandatory. The same script will change the caption, you would just put it in a different event and have it in an if statement.

Good luck,

Niall