Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:35:07+00:00 2026-06-06T15:35:07+00:00

Gravity forms allows for basic field calculations using merge tags, such as {Field 1:1}

  • 0

Gravity forms allows for basic field calculations using merge tags, such as {Field 1:1} * {Field 2:2}, but I would like to use if/and/else statements to set a field value such as:

if (and ({Field 1:1} = 200,{Field 2:2} = 1), 100, if (and ({Field 1:1} = 200,{Field 2:2} = 2), 150, if (and ({Field 1:1} = 200,{Field 2:2} > 2), 200, 0)))

or in other words:

if (field_1 = 200) {
if (field_2 = 1) {
field_3 = 100
} else if (field_2 = 2) {
field_3 = 150
} else {
field_3 = 200
}

Hoping someone can give me some idea of how to include this kind of calculation in Gravity Forms.

FYI: Here is the form I am working on. I hope to use formulas instead of 21 different variations of the ‘Course 1 week 1 topup’ conditional field which appears only when course 1 and week 1 are selected.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:35:09+00:00Added an answer on June 6, 2026 at 3:35 pm

    Gravity Forms confirmed that it is not currently possible to include if/and/else statements in their formulas (Gravity Forms v1.6.4).

    Hope to see this in a future version!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a Gravity Grid such as in this image: The
spinner gravity only seems to work in the horizontal dimension. I would like the
I'm using Gravity Forms in Wordpress to create a submission form for a client.
I am using gravity forms and contact form 7 and I dont know why
I have a WordPress site that I am using a gravity form. I would
I'm currently using setGravity(Gravity.CENTER_VERTICAL) and this works well when the TextView is tall enough.
I have been working on a (kind of) gravity simulation using C# and Winforms,
I want to add ImageView to FrameLayout with Gravity or margins. but FramLayout and
I have div container and inside couple div with class demo and gravity like
Google gravity and gravity script are two nice demonstrations. but no source code or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.