Skip Navigation

[Resolved] Edit user form not populating existing information

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1154678

I am trying to: use edit user form, the fields are not showing the current captured information and when submitting new information is generating a new user alert

Link to a page where the issue can be seen: hidden link

I expected to see: existing information populated in fields

Instead, I got: defualt values

#1154857

Hello, I need some more information please:
1. Copy and paste the code from your Edit User Form here for me to review.
2. Is this Form set up to edit the current logged-in User, or some other User?
3. When the page with the Form loads, are there any JavaScript errors in the browser console?
4. Temporarily deactivate all plugins except Toolset, and activate a default theme like Twenty Seventeen. If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns.

#1154878

hi there, there are no java script errors, the user for is set to edit user with the below

[creduserform]
[one_third]<div class="information-container">
<div class=""><h3>Personal Information</h3></div>
<div class="form-row">Firstname:[cred_field field='first_name' class='form-control' output='bootstrap' value='First name']</div>
<div class="form-row">Lastname:[cred_field field='last_name' class='form-control' output='bootstrap' value='Last name']</div>
<div class="form-row">Email address:[cred_field field='user_email' class='form-control' output='bootstrap' value='Email']</div>
<div class="form-row">Mobile Phone:[cred_field field='mobile' force_type='field' class='form-control' output='bootstrap' value='Mobile phone']</div>
<div class=""><h3>Bank details</h3></div>
<div class="form-row">Account holder:[cred_field field='account-holder' force_type='field' class='form-control' output='bootstrap' value='Account holder']</div>
<div class="form-row">Bank name:[cred_field field='bank-name' force_type='field' class='form-control' output='bootstrap' value='Bank name']</div>
<div class="form-row">Branch code:[cred_field field='branch-code' force_type='field' class='form-control' output='bootstrap' value='Branch code']</div>
<div class="form-row">Account Number:[cred_field field='account-number' force_type='field' class='form-control' output='bootstrap' value='Account number']</div>
</div>[/one_third]
[two_third_last]
<div class="" style="margin-top:22px;"><h3>Profile information</h3></div>
<div class="">Your cost per shout out</div>
<div><p style="font-size:14px;font-weight:400;">Please confirm how much you want to charge per video. Please note this price will include the 25% myFanPark Fee.</p></div>
<div class="form-row">[cred_field field='charity-name' force_type='field' class='form-control' output='bootstrap' value='R650']</div>

<div class=""></div>
<div class="">
Profile introduction</div>
<div class="form-row">[cred_field field='about-me' force_type='field' class='form-control' output='bootstrap' value='Profile introduction']</div>
<div class="">Select your celebrity type:
<div class="form-row">[cred_field field="celebrity-types" force_type="field" class="form-control" output="bootstrap"]</div>
<div class="">Please upload two high definition photos and a introduction video
<p style="font-size:14px;font-weight:400;">Drag image with your mouse to ensure we get your good side</p></div>
<div class="form-row">[cred_field field="profile-image" force_type="field" class="form-control profile-upload celeb-profile-image-block" output="bootstrap"]</div>

[one_half]<div class="form-row">[cred_field field="introduction" force_type="field" class="form-control profile-upload celeb-profile-video-block" output="bootstrap"][/one_half]</div>
[one_half_last]<div class="form-row"><p style="font-size:14px;font-weight:400;">Please record a 
shout-out video to your fans that we can feature on your booking page. Keep it under 60 seconds and record it in portrait mode please.</p></div>[/one_half_last]

<div class=""><h3>Donate to your charity</h3></div>
<div class=""><p style="font-size:14px;font-weight:400;">Please confirm if you would like to donate a portion of your booking fee to a charity of your choice, or contribute to any of our charities listed below. While you will be responsible for making payments to the charity of your choice, we will manage payments on your behalf to our preferred charities and will include a message about your charity support on your booking page.
</p></div>
<div class="" style="margin-top:20px;">Your prefered charity name</div>
<div class="form-row">[cred_field field='charity-name' force_type='field' class='form-control' output='bootstrap' value='Charity name']</div>
<div class="form-row">[cred_generic_field type='checkbox' field='terms-and-conditions']
{
"required":0,
"default":"",
"label":"I accept MyFanPark’s terms and conditions"
}
[/cred_generic_field]</div>
[cred_field field='form_submit' output='bootstrap' value='Submit profile' class='btn btn-primary btn-lg']

[/two_third_last]

[/creduserform]

#1154938

Okay I see the problem. Your cred_field shortcodes use the "value" attribute:

[cred_field field='first_name' class='form-control' output='bootstrap' value='First name']

This field will always show "First name". Instead, use the "placeholder" attribute:

[cred_field field='first_name' class='form-control' output='bootstrap' placeholder='First name']

Please make this adjustment in all the cred_field shortcodes, and let me know if the problem is not resolved.