Gravity Form to Leads please?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lazovic
    Super Moderator
    • Jan 2022
    • 1139

    #31
    Nth20,

    Please try to use the following formula script:
    Code:
    if (entity\isNew() && departureDate1) {
      cDepartureDate = departureDate1
    }
    
    if (entity\isNew() && returnDate1) {
      creturnDate = returnDate1
    }

    Comment

    • Nth20
      Member
      • Jun 2025
      • 40

      #32
      Thanks Iazovic,
      Do I just need to add this new formula script and still keep the old one (below)?

      if (departureDate1) {
      cDepartureDate = departureDate1
      }

      if (returnDate1) {
      creturnDate = returnDate1
      }

      I tried to add the new one in addition to the old one but it is still not working. Will I need to put exactly: if (entity\isNew() && departureDate1)... or should I replace the "entity" with my custom entity name called booking so it will be if (booking\isNew() && departureDate1)...?

      Comment


      • lazovic
        lazovic commented
        Editing a comment
        You need to replace the old formula script with the one I suggested. The word "entity" should remain.
    • Nth20
      Member
      • Jun 2025
      • 40

      #33
      Thank you so much for your time and help Iazovic, it worked! Have a great week!

      Comment

      Working...