+ Reply to Thread
Results 1 to 3 of 3

Thread: Default for Data Entries Countries in homepage search form

  1. #1
    Senior Member
    Join Date
    Dec 2023
    Posts
    161

    Default for Data Entries Countries in homepage search form

    Under Data Entries I have Countries
    United States has the check box checked for [x] Default
    (If I click on Manage, each country then has states and each state has cities.)

    Question: on the homepage search form, I went to the search form builder and dragged Countries (dropdown) and State/Region/Province (dropdown)
    Is there a way to have the Countries dropdown have the Default (United States) selected by default?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    Hello,

    Use this code for automatical selection of your country on search forms editing these files:

    templates/your_template/tpl/blocks/fields_search.tpl

    templates/your_template/tpl/blocks/fields_search_horizontal.tpl

    templates/your_template/tpl/blocks/fields_search_box.tpl


    find:
    Code:
    Only registered members can view the code.
    replace:
    Code:
    Only registered members can view the code.
    with:
    Code:
    Only registered members can view the code.

  3. #3
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    Perfect -- thank you!

+ Reply to Thread