Multiplication within form fields (Days x Daily Cost = Total Cost)

  • 10 November 2020
  • 1 reply
  • 19 views

Badge +1

I have these 3 fields within form, but now need the magic to happen. How can I add a rule OR variable for the # within "HOTELDAYS" multiplied by the # within "HOTELCOSTPERDAY", equals the "TOTALHOTELCOST" ?

 

This needs to be automatically done as the submitter fills out the field.


1 reply

Userlevel 6
Badge +22

Hi,

 

The rule on the TOTALHOTELCOST control is like this.

 

When 

not(and(isNullOrEmpty(HOTELDAYS),isNullOrEmpty(HOTELCOSTPERDAY)))
Then
Set value
Value
 
Its saying that when the fist two controls are not empty set the value of first times second.
Attached a sample responsive form as a working example.

Reply