Problem when there are two registration forms on the same page
Author | Posts |
---|---|
March 25, 2013 at 11:39 am 1493 | |
Abdul Aziz | Hi guys, I have two registration forms, and I use them only for profile updater. (type="profile"). One of these forms is used to allow user update some fields, and the other has another different fields to be updated. I have a page called profile updater which has several tabs. I place one form in one tab and the other form in the other tab. The problem is that only the first one is working, the second form doesn't update anything. Any suggestion? |
March 25, 2013 at 12:39 pm 1497 | |
Tareq Hasan | I guess the problem is happening because the form ID. As only one ID is supposed to be in a page, now as you’ve multiple forms, this isn’t working. The quick solution would be changing the form ID to class. So currently there is [php]<form id="wpuf-form-add" action="" method="post">[/php]. You need to change this to: [php]<form class="wpuf-form-add" action="" method="post">[/php]. You need to change both post and profile form ID’s this way. Look into Now you need to change the JavaScript in |
March 25, 2013 at 6:48 pm 1503 | |
cmorillas | Thank you. |
March 25, 2013 at 7:29 pm 1505 | |
cmorillas | I have do all the things, but when I update in the second form, the first registration form doesn’t display the email field. |
March 25, 2013 at 8:10 pm 1506 | |
cmorillas | Not only the email. All the data of the profile fields has been removed when pushing the button in the second form. |
March 26, 2013 at 2:51 am 1512 | |
Tareq Hasan | Right, just tested it. So with multiple forms this bug appears for First name, Last name, Nick name, User URL and description. Isn’t that right? |
March 26, 2013 at 3:20 pm 1537 | |
cmorillas | Yes.iThat s the problem. Any solution?Y |
March 26, 2013 at 3:29 pm 1538 | |
Tareq Hasan | Look at the Now replace that code with this: [php] if ( $this->search( $user_vars, ‘name’, ‘first_name’ ) ) { if ( $this->search( $user_vars, ‘name’, ‘last_name’ ) ) { if ( $this->search( $user_vars, ‘name’, ‘nickname’ ) ) { if ( $this->search( $user_vars, ‘name’, ‘user_url’ ) ) { if ( $this->search( $user_vars, ‘name’, ‘user_email’ ) ) { if ( $this->search( $user_vars, ‘name’, ‘description’ ) ) { |
March 27, 2013 at 11:12 am 1552 | |
cmorillas | It works !!! Thank you. |
April 5, 2013 at 8:20 am 1819 | |
ivaxtobac | It works fine. Thanks!!! |
May 22, 2014 at 11:13 am 20826 | |
Alex | Hi @Tareq, Just about to add two wpuf forms to a single page, as mentioned in this topic. Is the solution outlined in this topic still necessary given most recent version of WPUF Pro? Thanks, |
January 13, 2015 at 7:04 am 34003 | |
Abdul Aziz | morning All, how can i make it ? anybody help ? i did it with text (custom field @ wp user), but there is no meta key for that ??? thanks a lot for attention.. |