Hi,
Is it possible to add shotcode in "edit user form"? I have a shotcode avatar_upload which works in post. but when I add it in edit user form it doesn't work. Below is the form html.
[creduserform]
<div class="form-group">
<label>Nickname</label>
[cred_field field='nickname' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<?php echo do_shortcode("[avatar_upload]"); ?>
</div>
[cred_field field='form_submit' output='bootstrap' value='Submit' class='btn btn-primary btn-lg']
[/creduserform]
Hello,
I assume [avatar_upload] shortcode will output a HTML form for user upload his custom avatar image.
According to W3C HTML standard, you can not put one HTML form into another HTML form, it is forbidden:
hidden link
but with no form element descendants.
So you can not embed other form into Toolset Forms, it won't work.
I assume you are going to customize user's avatar image.
This is possible with an custom user image field some custom codes, for example, below thread is for:
user can upload their image into custom user image field "user-profile-avatar" to replace user avatar:
https://toolset.com/forums/topic/replace-wp-profile-image-with-user-field-image/#post-1607793
For your reference.
My issue is resolved now. Thank you!