Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoraidaide
    • CommentTimeDec 4th 2010
     
    Hi,
    I was reading up on FormAssembly's saved form feature (http://www3.formassembly.com/blog/support-documentation/managing-your-forms/save-resume-options/). I plan on embedding the form into my own site, and my site's users have their own username/password for the site. Is there any way to avoid having them create separate login for the form, or at least prefill those fields for them?

    Thanks!
    • CommentAuthordbuschho
    • CommentTimeDec 5th 2010
     
    Hello,

    Depending on your setup you can prefill the values in several ways. Can you tell me what your server setup / database setup is?

    FA Support.
    • CommentAuthoraidaide
    • CommentTimeDec 6th 2010
     
    Not sure exactly what you need, but I have a bunch of MySQL databases with my users' usernames, passwords, name, etc. I basically want to set the form up so that when they visit the site logged in, fill out the forms, and then want to save, they either don't have to enter their username and password (because they're logged in, and so my site will remember it for them) or the username and password fields are filled in for them.
    • CommentAuthordbuschho
    • CommentTimeDec 6th 2010
     
    What scripting language are you working with, and how are you embedding the form into your pages?
    • CommentAuthoraidaide
    • CommentTimeDec 6th 2010 edited
     
    PHP, and I'm embedding the form on my site using the PHP code given here (http://www3.formassembly.com/blog/support-documentation/managing-your-forms/form-publishing-options/#restapi).

    Thanks again for all your help, by the way.
    • CommentAuthordbuschho
    • CommentTimeDec 7th 2010
     
    Hello,

    Using the REST api it might get a bit tricky ... but first a proviso:

    Any of the methods I'm going to describe are insecure for one reason or another ... if you're doing anything with strong security requirements, I'd think very very carefully about implementing these.

    1. Append your user's username and password to the requesting url, ie:
    'https://app.formassembly.com/rest/forms/view/INSERT_FORM_ID_HERE?tfa_resumeEmail='.$username.'&tfa_resumePassword='.$password;
    note, of course, that will compromise their password to us.
    2. You could retrieve the form code into a PHP variable, then grep through and substring replace the appropriate fields before actually rendering them to your users. This might be the most secure of a bad set of choices as this at least only exposes the password on your local system.

    Note that in order to do this, you must be storing your passwords in plain text in your database. If this is something that needs a high level of security, storing plaintext passwords is a bad idea.

    Happy to help further,
    FA Support.