Viewing 5 replies - 1 through 5 (of 5 total)
  • You can use an extra field for property ref number and… there is a feature to use field tags in subject, click ‘help’ next to the setting “E-mail Subject Prefix:” to see the available field tags.

    Thread Starter Rachel Winspear

    (@spanglishwebs)

    Hi, Thanks for your reply.
    I am still having trouble showning the varible.
    This is the php that gets the ref number:
    <?php echo get_post_meta($post->ID,'mls_no',true);?>

    I would like to be able to insert this into a field so it always appears and the user doesnt need to insert the ref number manually.

    I have tried putting it in ‘Optional modifiers: Default text:’ but it just shows the php code, and in ‘Attributes’ is shows half the code.

    Im not sure how to display the varible correctly.

    Thanks in advance!
    Rachel 🙂

    Thread Starter Rachel Winspear

    (@spanglishwebs)

    Is this possible?

    How to add the contact form to a template manually rather than use shortcode in a page and add a hidden field.

    This will be a field in the email, not in the subject

    Use this code:

    <?php
    $property_ref_num = get_post_meta($post->ID,'mls_no',true);
    if ( isset($si_contact_form) )  {
     echo $si_contact_form->si_contact_form_short_code( array( 'form' => '1','hidden' => "Property=$property_ref_num" ) );
    }
    ?>

    Be sure to set the correct form number for example, for form 2 you have to set: ‘form’ =>’2′

    Note: with the plugin versions 4.x and higher, you have to enable the setting “Enable PHP sessions” on the form edit “Advanced” tab or this feature is ignored. If you enable this setting, test your form and site to be sure it supports PHP sessions. PHP Sessions are no longer enabled by default allowing for best compatibility with servers, caching, themes, and other plugins. This should resolve many sessions related issues some users had.

    Let me know if it works.

    I am hoping you will reply back to let me know if it worked or not

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add Varible into Subject’ is closed to new replies.