Start a new topic
Answered

How to 'pre-fill' location information in the application page

My directory is for local businesses only.....but I'm getting a few long-distance entries, which have nothing to do with our local businesses.


How can I prefill the Country to show up as 'Canada' and the Province to be pre-filled as 'Manitoba', so that anyone trying to add a new business from, for example, Los Angeles, gets the hint.....?


Bo



Best Answer

Hi Bo, here are my findings (Correct me if this works for you or not). Follow this steps to get EXACTLY what you want:


1. On your Backend Dashboard, go to Toolbox -> Widget Manager and search for Signup Page Step 3 widget. Customize it and edit the Signup Page Step 3 widget.


2. On the Widget Code Box, on line 11 go to the part where it says :

  

...TABINDEX=7><?=countryList($b[country_code],$w)?></select>...

  

And change it to

  

...TABINDEX=7><option value="CA">Canada</option></select>...


3. On the same Widget code Box, on line 16 go to the part where it says:

   

...id="state"><? echo getStateList($b[state_code],$w,$b[country_code]); ?></select>...

 

and change it to:

  

...id="state"><option value="MB">Manitoba</option></select>...

 

And the final result is "They'll get the hint" haha.


Please let me know how it went friend.

1 Comment

Answer

Hi Bo, here are my findings (Correct me if this works for you or not). Follow this steps to get EXACTLY what you want:


1. On your Backend Dashboard, go to Toolbox -> Widget Manager and search for Signup Page Step 3 widget. Customize it and edit the Signup Page Step 3 widget.


2. On the Widget Code Box, on line 11 go to the part where it says :

  

...TABINDEX=7><?=countryList($b[country_code],$w)?></select>...

  

And change it to

  

...TABINDEX=7><option value="CA">Canada</option></select>...


3. On the same Widget code Box, on line 16 go to the part where it says:

   

...id="state"><? echo getStateList($b[state_code],$w,$b[country_code]); ?></select>...

 

and change it to:

  

...id="state"><option value="MB">Manitoba</option></select>...

 

And the final result is "They'll get the hint" haha.


Please let me know how it went friend.