Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris McLaren 4 posts 25 karma points
    Jun 26, 2012 @ 15:16
    Chris McLaren
    0

    Auto complete form

    Hello.  I've had a request to build some extra functionality into a Contour form but I am unsure if it is possible.  I have a Contour form the accepts a user's name, address details and comments.  The website is not available to the public and for the people who can access the site I already have their name and address details in a CSV file.  What I am looking to do is upload this CSV file to the Umbraco database.  Then when someone is using the Contour form, once they enter their name, their address details are automatically populated.  Is this possbile?  Thanks in advance for any help.

  • Dan 1288 posts 3921 karma points c-trib
    Jun 26, 2012 @ 15:56
    Dan
    0

    Hi Jack,

    I don't think this functionality is built in and I'm struggling to think of a way to extend Contour to facilitate this.  What you can do though is use javascript to manipulate the form values quite easily client-side, so this would be the approach I'd take personally.  I'd use Umbraco Base to output the address from a supplied name (there may be security/data-protection concerns with that?) and use jQuery AJAX to fetch this data and populate the form.

    If you're unfamiliar with Base, I'd check out Umbraco TV.  The jQuery stuff should be simple enough.

    I hope this sounds like a suitable approach.  Keep us posted :)

  • Chris McLaren 4 posts 25 karma points
    Jun 27, 2012 @ 12:49
    Chris McLaren
    1

    Hi.  I decided to go with this method http://www.nibble.be/?p=106 which integrates members details with contour.  Thanks.

  • Dan 1288 posts 3921 karma points c-trib
    Jun 27, 2012 @ 13:24
    Dan
    0

    Ah, I see - didn't realise it was members (users and members are very much different in Umbraco) or that it was for updating a member's own properties.  In which case, yeah, that looks like a spot-on solution, thanks for the update.

Please Sign in or register to post replies

Write your reply to:

Draft