I purchased the premium version of this plugin and it was working fine. Upon updating to 1.3, I think it resets to the free version.
The field for the city research now is not responsive.
I can find no way to get an updated full version which I paid for or a way to make it work again.
Please help, as I’ve received no email for an update or anything.
Thank you for your time.
Please add this code to your plugin (contact-form-7-city-field-extension.php), because without it the plugin doesn’t recognize –> placeholder=”something”
/*This is already there --> $value = (string) reset( $tag->values );*/
if ( $tag->has_option( 'placeholder' ) || $tag->has_option( 'watermark' ) ) {
$atts['placeholder'] = $value;
$value = '';
}
It would be like this:
/*
* CityFieldText Shortcode
*/
function wpcf7_cityfield_shortcode_handler( $tag ) {
$tag = new WPCF7_FormTag( $tag );
if ( empty( $tag->name ) )
return '';
$validation_error = wpcf7_get_validation_error( $tag->name );
$class = wpcf7_form_controls_class( $tag->type, 'wpcf7cfe-cityfield' );
if ( $validation_error ) {
$class .= ' wpcf7-not-valid';
}
$atts = array();
$atts['size'] = $tag->get_size_option( '40' );
$atts['maxlength'] = $tag->get_maxlength_option();
$atts['minlength'] = $tag->get_minlength_option();
if ( $atts['maxlength'] && $atts['minlength'] && $atts['maxlength'] < $atts['minlength'] ) {
unset( $atts['maxlength'], $atts['minlength'] );
}
$atts['class'] = $tag->get_class_option( $class );
$atts['id'] = 'autocomplete';
$atts['tabindex'] = $tag->get_option( 'tabindex', 'int', true );
if ( $tag->has_option( 'readonly' ) )
$atts['readonly'] = 'readonly';
if ( $tag->is_required() )
$atts['aria-required'] = 'true';
$atts['aria-invalid'] = $validation_error ? 'true' : 'false';
$value = (string) reset( $tag->values );
<strong> if ( $tag->has_option( 'placeholder' ) || $tag->has_option( 'watermark' ) ) {
$atts['placeholder'] = $value;
$value = '';
}</strong>
$atts['type'] = 'text';
$atts['name'] = $tag->name;
$atts = wpcf7_format_atts( $atts );
$html = sprintf(
'<span class="wpcf7-form-control-wrap %1$s"><input %2$s />%3$s</span>',
sanitize_html_class( $tag->name ), $atts, $validation_error );
return $html;
}
]]>
Hello Team,
How can I stop to load map.google API on every page.
]]>Nice plugin I need Airport Search instead of City search is it possible?
Thanks in advance
]]>Hi Pasquale, how are you doing?
Required Field is not working. User is able to send the form with the [cityfieldtext*] field in blank. Would you mind to take a look and revert back?
Thanks a lot!
Best regards,
Eduardo
I am having an issue where the plugin works fine for one city but not a second input. My contact form is for a moving company and has a city from and a city to input. The plugin auto completes the first input fine but does not seem to work for the second input field.
Here is a small section of the code I am having trouble with:
<tr>
<td class=”tablephone”><h4 style=”color:#fff;”>
*From City: (required)</h4>[cityfieldtext* cityfrom]
</td>
<td class=”tablephone”><h4 style=”color:#fff;”>
*To City: (required)</h4>[cityfieldtext* cityto]
</td>
</tr>
The cityfrom input works fine but the cityto input does not work. Am I doing something wrong or does this plugin not allow for multiple inputs?
]]>Hi! I have purchased your Premium version of your city field extension to contact form 7. I was wondering if there is an option for adding UK Post Code support? Thanks.
]]>[cityfieldtext*] Allows user send a blank field.
]]>I have my contact form 7 within a bootstrap modal. When I type in the city field, the autocomplete is behind my modal. How do I set the z-index for that drop down to show above my modal.
What is the class or id name that I can use in my style sheet to update?
]]>I purchased the premium version of this plugin and it was the best thing ever for our operation and what we needed. Upon updating to 1.3, it resets to the free version. I can find no way to get an updated full version which I paid for. Please help, as I’ve received no email for an update or anything. I’m concerned as now we are stuck and have no functionality for what we need on our web form. I have transaction ID’s, receipts, all that. Thank you for your time.
]]>Hi,
I’d like to change the default text in the Contact Form 7 City Field Extension (using version 1.3) form field.
Somewhen in the past I used the Contact Form 7 option placeholder “Show this text”, but it does not work anymore.
The standard text in the form field is: “Geben Sie einen Standort ein.” (which means: Please insert a location.). Why it is a german text?
How can I change the default form field text?
Thanks!
Best Regards
kraeMit
Hi Pasquale,
Thanks for your plugin. I have installed it but the autocomplete it′s not working. I have deactivate all the plugins tha use google map (there are not error showing in console) and i have tried with different api keys, but it doesn′t work. Do you know what can be the problem?
Thanks,
Victor
]]>Working, but only my town, no streets.
like: Ludvika Svobodu 3 Rimavská Sobota
or Rybárska Rimavská Sobota
I am displaying a contact form 7 in popup, but the city field is not working in popup.
Also I have tried creating different form for popup which didn’t work.
Let me know the solution for this.
Is it possible to get latitude and longitude with this plugin?
]]>Salve, con questo plugin, è possibile creare una cosa simile?
https://preview.codecanyon.net/item/gravity-forms-address-autocomplete/full_screen_preview/16361484
o per lo meno avere l’indirizzo completo
Via, Città; cap, provincia e stato.
grazie
]]>Hi,
I seen below the thread about adding placeholder text, which I can get to work by using placehold “test” in the form field.
But when I display the field on a page the text is actually in the field and has to be deleted before been able to type a location in.
Any ideas?
Thanks
]]>Hi,
I added your plugin to https://www.quickbus.ie it worked for a few minutes then the field stopped showing areas when I typed into it? I have the paid version of it. I’m assuming it’s to do with the Google API. I’ve tried multiple API’s created on different Google accounts and still no joy.
Any ideas?
Cheers
Hi there,
Can the plugin support Google Places, not just addresses?
Also can it fill out a form based on the results, I.e. separate the results to different feilds
Name
Address
City
State
Zip
Etc.
Thank you!
]]>Hi,
Just purchased your extension. Unfortunately I can’t get it work, guess because of some API problem? Hope you can help me out.
Yours sincerely,
Kevin
]]>I am trying to use it for WP Version 4.5.3 but its not working. The autocompletion does not work
Regards,
Rishi
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Hey!
Unfortunately the plugin doesn′t work. It appears an Error Message within the
textbox. How can i solve this?
Cheers
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Hello
I have use contact form
i have created two field From and to but only working on one field but i want use TO field in this section not working please help me
https://seastonetravels.in/online-ticket-booking/
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Issue adjusting the size. I tried the normal way and things aren’t working out as planned. Any ideas or suggestions?
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Location of error: /wp-content/plugins/contact-form-7-city-field-extension/js/script.js
Type of error: Uncaught ReferenceError: map is not defined
Location of error: line: 9, column: 49
Line says:
places = new google.maps.places.PlacesService(map);
—————
How do I fix this?
Thank you.
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Hi,
I have word press version 4.4.3.
Is this plugin compatible with that version..?
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Hi,
I am using one form multiple times in one page.
https://gbdev.burningfruit.com/
In chrome it is just displaying it in first form, in second form it is not working..
Also in firefox , it is not working even on first form..
Can you let us know what is the issue..
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>I’m getting this error at the very bottom of the Edit Contact Form page:
Fatal error: Call to undefined function wpcf7_link() in /home/bleesp5/public_html/wp-content/plugins/contact-form-7-city-field-extension/contact-form-7-city-field-extension.php on line 169
This was working relatively recently, as far as I know. Any ideas?
Thanks
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Is it possible to use other types such as airport?
Do i update the js file from “cities” to “airports” ?
Thank you
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>Hello!
For the first: It is a great plugin!
Second: Can you add some placeholder customization? I mean, to remove totally the placeholder. I know you can add placeholder=”& nbsp;”, but is not OK. Can you add an option to remove/modify placeholder?
Thank you! ??
https://www.ads-software.com/plugins/contact-form-7-city-field-extension/
]]>