PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional in Email notification

  1. I need to put a special xml code in the email notification and i need to use conditionals to output or not a block of code based on the value of a field. For instance:

    if({numberOfRooms:45} > 1) {
    <RoomData>
    <Category>{Tipologia:10:value}</Category>
    <Service>{Servizio:11:value}</Service>
    <Adults>{Adulti:12}</Adults>
    <Kids>
    <Qty>{Bambini:13}</Qty>
    <Age>{Età primo bambino:38}</Age>
    <Age>{Età secondo bambino:39}</Age>
    <Age>{Età terzo bambino:40}</Age>
    <Age>{Età quarto bambino:41}</Age>
    <Age>{Età quinto bambino:42}</Age>
    </Kids>
    </RoomData>
    }

    is that possible? How? Thanks.

    Posted 11 years ago on Thursday April 18, 2013 | Permalink
  2. David Peralty

    Have a look at conditional shortcodes half way down this page: http://www.gravityhelp.com/documentation/page/Shortcodes

    Posted 11 years ago on Thursday April 18, 2013 | Permalink