1. occfaadm
  2. Support
  3. Monday, February 23 2015, 04:56 AM
I am having problems with registration by users on the Google maps field. Is there a way to suppress the green and red buttons and expand the field width to 40 characters - one or both?

The users are doing this and getting address ranges, or are selecting the wrong address from the auto-fill.

Love this field, but if I can modify it - it would be great
admin Accepted Answer
Admin
The easiest way to eliminate these two buttons is to hide via CSS.


These buttons have following ID: geo-alias_of_field-geolocation,geo-alias_of_field-reset, so you can add this CSS rule:
#geo-alias_of_field-geolocation, #geo-alias_of_field-reset{display:none}


NOTE: if you remove reset button will not possible to reset the field to empty value.

Length of input depends only from your template style, so you can customize this with simple CSS like:
#jform_alias_of_field{width:400px}
  1. more than a month ago
  2. Support
  3. # 1
occfaadm Accepted Answer
Pro
forgive my stupidity, but where would I put this css? I put it in my template css, no change.
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
yes you need to put into template CSS. Have you replaced "alias_of_field" with alias of your field? if so, please post me your site link to check
  1. more than a month ago
  2. Support
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.