Forums Forums Search & Filter Pro sfid results.php

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #194747

    Is there a way to get the sfid in results.php (so that I can basically do an if/else to change some display text)?

    Trevor
    #194804

    You can either make a results.php file per form. So, if a form is ID # 1234 then you name the results.php for it 1234.php.

    Or you can use PHP, like this (I think):

    <?php
    global $searchandfilter;
    
    if ( $searchandfilter->active_sfid() == 1234) {
      // do this
    } else {
      // do that
    }
    
    ?>
Viewing 2 posts - 1 through 2 (of 2 total)