• Hi, I made a profile form, it works fine!
    The thing is, once I complete it for the first time, next time I visit the profile page the summary of the completed items appear, with a link to edit it, and if I click it the form becomes available again and I can modify it.

    I’m trying to get it to display this modifiable version directly every time instead of the summary version, because it works much better with the rest of the profile page… Is there any way I can do this from the admin panel?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author hoffcamp

    (@hoffcamp)

    The user profile form checks for a query variable related to the ID # of the form. The default slug for a form has the number as a suffix. So if your form’s ID # is 1, you would append ‘?fm-edit-1=1’ to the URL and the form will display.

    The problem is that submitting the form by default takes you back to the summary view. It would be kindof a hack, but you could put some javascript in an unlabelled note to change the action of the form:

    <script type="text/javascript">
    jQuery(document).ready(function(){
    document.getElementById('fm-form-1').action = "http://...?fm-edit-1=1";
    });
    </script>

    I tried this and it works on my end, but your theme would have to be loading jQuery. Let me know if this doesn’t work for you.

    Thread Starter lilireed

    (@lilireed)

    Hi hoffcamp, the addition to the edit form worked fine!
    Didn’t quite get the JS part, but anyway I’ll try to redirect users away from the profile page once they have updated it…

    Have you by any chance made these “profile type” forms actually update the new fields to the wordpress user profile page? That would be AWESOME… There are so many people trying to hack this and get it to work properly, I myself have only gotten it to work with text fields… with your plugin it could be easily done!!

    Thanks for all the help…
    Lili

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘profile form’ is closed to new replies.