Home › Forums › Front-end Issues › Front End User Profile Edit – Selection Field › Reply To: Front End User Profile Edit – Selection Field
Sure thing! I have trimmed it down to just the important parts I think. You’ll see that I just have it hardcoded in there at the moment. I’m not sure how to display it dynamically, or SAVE the users choice.
<?php
/*
Template Name: Video Set Up Page
*/
acf_form_head();
/* Get user info. */
global $current_user, $wp_roles;
?>
<!-- START THE CUSTOM SECTION -->
<div id="post-218">
<form method="post" id="adduser" action="<?php the_permalink(); ?>">
<div id="acf-form-data" class="acf-hidden">
<input type="hidden" name="_acfnonce" value="87d0486349" />
<input type="hidden" name="_acfchanged" value="0" />
</div>
<!-- START VIDEO SET UP SECTION -->
<label for="email">Customer Type</label>
<select id="acf-field_56aba9ca0d64a" class="" name="acf[field_56aba9ca0d64a]" data-ui="0" data-ajax="0" data-multiple="0" data-placeholder="Select" data-allow_null="0" style="width: 100%;">
<option value="Customer">Customer</option>
<option value="Member">Member</option>
<option value="Client">Client</option>
<option value="Patient">Patient</option>
<option value="Guest">Guest</option>
<option value="Subscriber">Subscriber</option>
</select>
<input type="hidden" name="wlm_updating_profile" value="1" />
<script type="text/javascript">
function MoveWLMember(){
try{
var x=document.getElementById('WishListMemberUserProfile');
var p=x.parentNode;
var s=p.getElementsByTagName('h3');
p.insertBefore(x,s[0]);
}catch(e){}
}
MoveWLMember();
</script>
<p class="form-submit">
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="Update Your Information" />
<input type="hidden" id="_wpnonce" name="_wpnonce" value="c3b5a2056a" /><input type="hidden" name="_wp_http_referer" value="/success/" />
<input name="action" type="hidden" id="action" value="update-user" />
</p><!-- .form-submit -->
</form><!-- #adduser -->
</div><!-- .entry-content -->
<!-- END OF THE CUSTOM SECTION -->
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.