UserPro Plugin - stop form submit based on ajax response if field is blank

Tamamlanmış İlan edilme: 6 yıl önce Teslim sırasında ödenir
Tamamlanmış Teslim sırasında ödenir

We're using the UserPro Plugin. Right now if a user deletes what's in a specific field in their profile so it's blank, jquery detects the input change and that's it's blank, and runs an ajax function. Based on this ajax response, it either shows a warning message and changes the data-required attribute to 1 or does nothing. This is working.

What we need though, is this same function to run when the form is submitted, and either allow or deny the form submission based on the ajax response, and show the same warning message to the user.

AJAX JavaScript jQuery / Prototype PHP WordPress

Proje NO: #15446137

Proje hakkında

4 teklif Uzak proje Aktif 6 yıl önce

Seçilen:

picaro3535

I can make this ajax functionality run on form submission. I have previously build an addon for UserPro to add custom tab on user profile. Relevant Skills and Experience I am experienced wordpress developer and have e Daha Fazla

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% CAD
(23 Değerlendirme)
4.8

Bu iş için 4 freelancer ortalamada $25 teklif veriyor

amjadali4888

Hi i can add that warning message to your code Relevant Skills and Experience jquery,userpro,wordpress,php Proposed Milestones $25 CAD - When completed

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(64 Değerlendirme)
5.1
vinodselvin

A proposal has not yet been provided

$25 CAD in 2 gün içinde
(0 Değerlendirme)
0.0