Using inputs from 2 fields to populate a 3rd

I am trying to populate a field using some logic and the inputs from two other fields to populate the 3rd.
So I have age as one field and amount as a second. Based on a combination of age of amount, I want to populate the third field (call it recommendation). It’s a fairly simple set of logic… if the age is >= X and amount is > Y, put Z in the recommendation, otherwise put Q in recommendation.
I cannot find a good way to do this with gravity forms. All the conditional logic is focused on show or hide fields which is great but not enough for this case.

Hi Terence. If you need to do this live on the page, you will need custom JavaScript/jQuery or Populate Anything from Gravity Wiz:

The Populate Anything plugin has a feature called ‘live merge tags’ that can do this. If you have any questions about the suitability of Populate Anything for this task, I recommend contacting Gravity Wiz for support.

Hi Terence,

Just as Chris stated, you can use our GP Populate Anything Perk to populate the third field with a value based on the values entered in the two other fields. For this solution, you’ll need to create a mapping form containing, as entries, the different combinations of the first and second field values and the resulting value for the third field. This will allow you to set up a Populate Anything filter for the two fields and populate the third field with the value from this mapping form.

Another solution that will work for you if the value that would populate the third field is a number is to use the conditional statement feature of our GP Advanced Calculations Perk. If you have any questions, you can get in touch with us so we can assist you further.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.