*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Phone number requeried
« on: October 23, 2017, 01:51:46 AM »
Hey, guys, I have a question

How can i make the phone number required, I know that the phone number is in the cityArea field, checking the item_post.php i just have

Code: [Select]
<div class="row">
            <label for="phone"><?php _e('Mobile Phone''zara'); ?><span class="req">*</span></label>
            <?php ItemForm::city_area_text($user_info) ; ?>
          </div>

I try something like the contactemail required code

Code: [Select]
contactEmail: {
              required: true,
              email: true
          },

But is not working, where i can see the
Code: [Select]
<input name="cityarea" or something similar. i just want to put the code for htmlt5
Code: [Select]
required>
Thank you for your time.
LaKompra.com

*

MB Themes

Re: Phone number requeried
« Reply #1 on: October 23, 2017, 10:01:55 AM »
@Carlos
HTML5 validation will not work as there is separate script that will block it.
Duplicate code for some existing field in item-post.php, you just need to rewrite name of input.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Phone number requeried
« Reply #2 on: October 23, 2017, 08:47:54 PM »
@Carlos
HTML5 validation will not work as there is separate script that will block it.
Duplicate code for some existing field in item-post.php, you just need to rewrite name of input.

Doing that Im not able to get the users information from the profile.

But thanks any way
LaKompra.com