• Hello, I just need a bit of assistance with regards to changing a form value in my HTML mail body.

    I basically have two restaurants, one in HOUNSLOW and one in WOOD GREEN.

    I have a drop down in my form that allows the customer to choose a restaurant:

    <label> Restaurant*</label>[select* your-restaurant class:comm-field include_blank “DEKU RESTAURANT – Wood Green|WoodGreen” “DEKU RESTAURANT – Hounslow|Hounslow”]

    The two values for the options are ‘WoodGreen’ and ‘Hounslow’

    I want to send the Wood Green bookings to [email protected] and the Hounslow bookings to [email protected]

    I can get this working by using this as the send to:
    [your-restaurant]@myrestaurant.com

    This works, however, in my mail body, I would like to put a space in between WoodGreen.

    So in my mail body, whenever I use [your-restaurant], I just want to convert WoodGreen to Wood Green (space in between).

    I understand this can be achieved with a php function (in functions.php) or perhaps another method? Open to any assistance.

    Thanks

    • This topic was modified 5 years, 4 months ago by dekudigital.
    • This topic was modified 5 years, 4 months ago by dekudigital.
  • The topic ‘Change form value in Mail Body only’ is closed to new replies.