Substracting fields and saving the result | Community
Skip to main content
Answered

Substracting fields and saving the result

  • November 15, 2022
  • 5 replies
  • 86 views

I’m interested in setting up logic (example below) but I can’t quite figure out how. Could someone please help me on this?

 

I need the answers so I can send an email based on their response.

 

Question 1: What’s your year of birth?

Question 2: What year are we in? (I'd love to skip this by getting the current year some other way)

Questions 3: What’s your age? (I would like to calculate this field by subtracting Q2 from Q1).

Best answer by KennyAli

Thank you both. Yes, I manage to accomplished exactly what I needed using variables following this videos it’s a little out of date but it helped a lot.

@Liz, @john.desborough 

Thanks.

View original

5 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • November 15, 2022

Hi @KennyAli Happy Tuesday! I hope you’re having a great week so far. 

For the second question, you could pass the year in through a hidden field, though we wouldn’t have a way to grab the data otherwise from an external source. 

If you use the option above (passing it in through the hidden field), I don’t think you would need the second question. Would passing in the year through the hidden field work for you? 

 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5307 replies
  • November 15, 2022

@Liz - one caveat: hidden fields come in as character strings, not numeric…. so you can’t (as far as i am aware - though i’ve asked for it lol) subtract a character string from a numeric.. (or date...) 

des


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • November 15, 2022

Oh yes, that’s right, @john.desborough ! You would need to convert it to a variable, @KennyAli . 


  • Author
  • Explorer
  • 2 replies
  • Answer
  • November 17, 2022

Thank you both. Yes, I manage to accomplished exactly what I needed using variables following this videos it’s a little out of date but it helped a lot.

@Liz, @john.desborough 

Thanks.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • November 17, 2022

Hi @KennyAli Glad to hear that worked! I can pass along the feedback to our help center team, too. Let us know if we can help with anything else!


Reply