*

san474747

  • *
  • 4 posts
item post city select
« on: February 17, 2017, 10:49:38 AM »
Hello!
 
The theme of Veronica 1.1.3
Placing item as not registered user, I choose a city from the list,declarations filed, then I again submit classified, but the location value is already filled in (picture 1), but the values sCountry,sRegion,sCity nothing, and since the id=term is a value, then you can submit the item, but in ad a city or a region is not specified, as sCountry,sRegion,sCity, no values
 
If there is a value in term, user to think that the city is chosen, and this is not so, if you look at (picture 2), it is clear that the location is not selected
 
How to make a validation to check values are just sCountry,sRegion,sCity, if values are not, the item may not be placed on the website

Tried this but no works
sCity: {
            required: true,
            minlength: 4
          },
 sRegion: {
            required: true,
            minlength: 4
          },

*

san474747

  • *
  • 4 posts
Re: item post city select
« Reply #1 on: February 17, 2017, 10:50:23 AM »
picture 2

*

MB Themes

Re: item post city select
« Reply #2 on: February 17, 2017, 11:03:24 AM »
@san
Why you simply do not select in theme settings to make term required?
I do not think hidden field can be required.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

san474747

  • *
  • 4 posts
Re: item post city select
« Reply #3 on: February 17, 2017, 11:16:19 AM »
I have specified location as required field in the theme settings

So it just checks whether the value in the term, you can write anything, and not choose a city from the list, and to bypass the validation on a required field simply by entering a character set for example : 1131311213131, and place an ad, and location in the ad will not be listed

Need to make that was a test of the values were in the fields
sCountry,sRegion,sCity, then it will make sense

*

MB Themes

Re: item post city select
« Reply #4 on: February 17, 2017, 11:21:24 AM »
@san
You can also simply inspect element and set here value 09821309128 and validation is bypassed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

san474747

  • *
  • 4 posts
Re: item post city select
« Reply #5 on: February 17, 2017, 11:29:26 AM »
It should not be, you need to choose the city and then serve an ad, now in the field term, you can enter anything greater than 3 characters and post ads without location, then what is the point of this field?
Should be allowed to give notice only after you select a city from the list