ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Saving safecracker form fields when member logs in...

August 23, 2012 4:00pm

Subscribe [2]
  • #1 / Aug 23, 2012 4:00pm

    shorn

    79 posts

    Hi,

    Just looking for a bit of assistance.  I have a safecracker form on my site that is collecting channel entries submitted by my members.

    I have set it up that so that if a user is logged out, the submit button is disabled, and there is an alert box at the top of the form advising that they need to be logged in to submit the form.

    However, I have still had users that are not logged in, start filling out all the form, and then realise they need to be logged in, however when they do then login it return them to the form, but all the fields are empty, and they have to start again.

    Is there a way to save what they already filled in, so that once they then log in, they don’t have to re-input all the fields again?

  • #2 / Aug 23, 2012 5:05pm

    Shane Eckert

    7174 posts

    Hello shorn,

    Thank you for posting your question here on the ExpressionEngine forums.

    This may be possible with some JavaScript, but why do you not just hide the form until the user logs in?

    I can move this over to the Community Help Forum to get some help with the JS.

    Cheers,

  • #3 / Aug 23, 2012 5:09pm

    shorn

    79 posts

    I want to display the form, as its a big part of the site, and it will give prospective non members an idea of what there is to fill in. Thinking about it I guess i could create a conditional where if the user is not logged in, all my form fields are disabled (using twitter bootstrap elements) so that might be an easier idea.

  • #4 / Aug 24, 2012 1:13pm

    Shane Eckert

    7174 posts

    Hey shorn,

    Agreed, form fields disabled make a lot more sense. Better workflow.

    Is there anything else I can help with?

    Cheers,

  • #5 / Sep 05, 2012 9:03pm

    shorn

    79 posts

    All good thanks.

  • #6 / Sep 06, 2012 5:16pm

    Kevin Smith

    4784 posts

    Great, let us know if there’s anything else we can do for you, shorn!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases