Nibble

Contour forms and Umbraco members

Contour 1.1.9 has just been shipped. It’s a minor release, but it adds a nifty little feature making it super easy to work with member data. Default values and workflow settings bracket syntax has now been updated to support member values.

Member values as default field values

Say that you have a comment form on your website with the standard fields (name, email, website and comment).

clip_image002

In the case when an Umbraco member is currently logged in and you want to pre-populate the name and email fields with the values from the logged in member, it’s now just a matter of setting the default value using the bracket syntax.

image

You can access: member.id, member.loginname, member.email and for custom properties simply use the alias member.customalias.

Full details on the syntax can be found in the Contour developer documentation.

Member values in workflow settings

Of course it’s also possible to use this syntax in workflow settings. For example, sending an email to the current member when a form has been submitted, just set the email setting to {member.email}

clip_image006

Member profile editor

Combine the default values with a workflow that will update the member details and you have a member profile editor.

Let’s start with a simple member type with just a single property with the alias custom.
clip_image008

I want the members to be able to edit their email and the value for the custom property so I’ll create a form with 2 fields (email address and custom property).

clip_image010

The default value of the email field has been set to {member.email}

clip_image012

And the one for custom property has been set to {member.custom}

clip_image014

So now if I request the form when I’m logged in as an Umbraco member, the fields should be populated with the current member values.

clip_image016

The next step is to make sure the member values get updated when the form is submitted. This can be done with a workflow (workflow is part of the contour strikes again project).

clip_image018

The workflow simply maps the member type properties to the contour form fields. When the form is submitted the member properties will be updated. Once this is in place you have a working profile editor.

Make sure you have at least Contour version 1.1.9 in order to use these features. Install and upgrade instructions can be found on the contour project page.

57 Comments so far

  1. Fuji Kusaka on August 10th, 2011

    Hi Tim, after your presentation at CG11 i was asked to make a registration form just the way you did it. But really dont know how to get started and dont know how to create the Member Type and the mapping.

    Can you explain please and help me get started.

  2. Tim Geyssens on August 11th, 2011

    @Fuji, I’ll do a detailed post in the next couple of days on how to setup a registration form

  3. Sean on August 12th, 2011

    Is there any way to provide a parameter to a datasource(culture code) to complete a drop-down? We have a multi-lingual site and our values for the dropdowns are stored in a database, grouped by culture. So, if you are on the site in Turkish, it should pull the values for the TK culture to fill the dropdown lists.

    Any ideas?

    Thanks.

    Sean

  4. Fuji on August 15th, 2011

    Thanks Tim, looking forward for this. I already set up contour and working on Contact and Comment form. However i noticed that when i create a filter in my workflow i just loose all my content of the comments. Any idea?

  5. happyfanaticsalsero on August 18th, 2011

    Hello Tim,

    How do I get and install the contour strikes again package? I can’t find a download on the codeplex page and the project doesn’t seem to be listed under the projects in our.umbraco.org.

    Next to that I’d like to add my 2 cents to post about a registration form. Any change of blogging that?

    I’ve been hoping for this functionality to end up supported in contour for quite some time; thrilled it’s finally here!

    Kind regards
    Pieter

  6. Fuji on August 19th, 2011

    Hi Tim, any updates there??

  7. Tim Geyssens on August 19th, 2011

    @Fuji, post coming next week

  8. Fuji on August 20th, 2011

    Great Thanks

  9. Rasmus on August 22nd, 2011

    Hi Tim
    I tried to use member values as default field values and it works just fine, when the user is logged in, but if the user is not logged in, the form outputs eg. {member.email} in the input field. Do you have any idea on how I can solve this, so the value is there, if the user is logged on and empty if not?

  10. Tim Geyssens on August 23rd, 2011

    @Fuji details are up http://www.nibble.be/?p=107

  11. Fuji on August 23rd, 2011

    Tim thanks for the members section for contour. However i can get the Invalid Error message to pop up when using the same member email address which is unique. nothing appears, instead am still getting “Email Mandatory” even after changint the “Invalid Error Message” in the form entries.

  12. Tom on August 24th, 2011

    do you have any tips on getting active directory to work?
    I can get it so that AD members can log in using standard asp.net login controls etc.. but as an admin user in umbraco I can’t see anything in the members section at all.. it just spins..

  13. Rachael on October 14th, 2011

    Hi, how do I get the members name? tried {member.name} and {member.nodeName}

    thanks

  14. Tammy on January 19th, 2012

    Hi Tim,

    I am creating a contact us form and required user to key in the date of birth. But we need user to select day, month and years from dropdownlist instead using a datepicker.

    I tried create a field type but don’t think so it work out.

    Can you please advice me what is the best solution for this?

    Regards,
    Tammy

  15. RResultats PMU on June 7th, 2012

    Great goods from you, man. I have remember your stuff prior
    to and you are just extremely excellent. I actually like what you have obtained
    right here, really like what you’re saying and the best way wherein you assert it. You’re making it entertaining and you still care for to stay it smart. I can not wait to learn far more from you. This is really a terrific website.

  16. Janet Kirklen on July 13th, 2012

    I too would like to find that Contour Strikes again package. I’m trying to figure out how to create a Registration form in Contour 1.1.12 that creates a member in the Umbraco membership tables. I need to be able to approve registrations so Contour handles that well and exporting registered user to an email list is also easy from Contour. So I just need to find a way to create the member entry in the membership tables.

  17. Christopher on July 31st, 2012

    Hi!

    Great job! I just have one kind of big issue with the UpdateUmbracoMember.cs. I would like to be able tu update a member property to nothing.

    if a member has a property for something filled out, and they want to blank that field, the update is not done to that property. I could of caurse change the code to enter in empty data, but that would just overwrite all other properties not chosen in the workflow.

    Any idea on how to fix this?

  18. best blog host sites on August 13th, 2012

    This is really interesting, You are a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more of your magnificent post. Also, I have shared your web site in my social networks!

  19. Wayne on October 25th, 2012

    Hi, great post thanks.

    I’m using a custom membership provider and in using the syntax {member.email} it fails as its using the member provider expected;

    umbraco.cms.businesslogic.member.Member.setupNode()

    any ideas how to get the contour form fields to call my membership provider for all bracket syntax values ?

  20. Iwin on December 26th, 2012

    his is really interesting, You are a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more of your magnificent post. Also, I have shared your web site in my social networks!

  21. http://www.superflyjordans.com on March 9th, 2013

    I feel this is among the such a lot significant information for me.
    And i am glad studying your article. But wanna statement on few common things, The
    web site style is wonderful, the articles is truly great : D.
    Good job, cheers

  22. William on December 3rd, 2013

    Tim, The website linked by the message starting “Wow! This blog…” is a site with a trojan exploit. It might be an idea to remove that post, if you can.

  23. Call Of Duty Ghosts Prestige Hack on February 9th, 2014

    An interesting discussion is definitely worth comment.
    I think that you need to write more about this topic, it may not be a taboo matter but generally people
    don’t discuss these subjects. To the next! Cheers!!

    Also visit my homepage - Call Of Duty Ghosts Prestige Hack

  24. real racing 3 Cheats on February 11th, 2014

    Great work! That is the type of info that are supposed to be shared across the internet.

    Shame on Google for no longer positioning this publish upper!
    Come on over and visit my web site . Thanks =)

  25. google plus app development on February 11th, 2014

    I’ll right away grab your rss as I can’t find your e-mail
    subscription link or e-newsletter service. Do you’ve any?
    Kindly permit me understand in order that
    I may just subscribe. Thanks.

  26. συνταγες on February 13th, 2014

    Thanks for sharing your thoughts. I truly appreciate
    your efforts and I will be waiting for your next write ups thanks once again.

    my homepage :: συνταγες

  27. https://independent.academia.edu/ on February 21st, 2014

    These days you may find that it is easy to clean and maintain over a
    long period of time. These splash backs splash aquatics are
    available in different sizes to fit in all kitchen types.
    Earlier ceramic tiles were preferred among people but with the coming of glass
    splash back are in greater use to provide a sleek environment in kitchen with color, interest and enhanced light.
    The only time we are not doing those things are when one of the Haitian doctors for help
    if we need to.

  28. localiser un portable gratuitement on February 21st, 2014

    Nice one, thanks… localiser un portable gratuitement

  29. Thanks for ones marvelous posting! I truly enjoyed reading it, you might be a great author.
    I will make sure to bookmark your blog and definitely will come back someday.

    I want to encourage you to continue your great writing,
    have a nice day!

    my website: เคล็ดลับผิวขาว

  30. งานอิสระ on February 22nd, 2014

    My family members all the time say that I am killing my time here at net,
    however I know I am getting know-how every day by reading
    thes fastidious articles.

    Here is my weblog :: งานอิสระ

  31. Hi just wanted to give you a brief heads up and let you know a few of the pictures aren’t loading properly.
    I’m not sure why but I think its a linking issue. I’ve tried it in two different web browsers and both show the same outcome.

    Review my website … สมัครงานคีย์ข้อมูล

  32. parapharmacie on February 23rd, 2014

    parapharmacie du nouveau siecle, un régal!

  33. parapharmacie en ligne on February 23rd, 2014

    Thanks for the tips ;)

  34. วิธีลดสิว on February 24th, 2014

    hey there and thank you for your information – I have definitely picked
    up something new from right here. I did however expertise
    several technical points using this website,
    as I experienced to reload the web site a lot of times previous
    to I could get it to load properly. I had been wondering if your web
    host is OK? Not that I’m complaining, but sluggish loading
    instances times will very frequently affect your placement in google and can damage your high-quality score if ads and marketing with Adwords.
    Anyway I am adding this RSS to my email and can look out for a lot more of your respective
    fascinating content. Ensure that you update this again
    soon.

    my blog: วิธีลดสิว

  35. งานอิสระ on February 26th, 2014

    Thanks designed for sharing such a fastidious
    thinking, post is good, thats why i have read it
    completely

    My web page งานอิสระ

  36. golivejasmin on February 26th, 2014

    I got this web site from my buddy who informed me about this web
    site and at the moment this time I am visiting this web site and reading very informative content here.

    Look at my web page :: golivejasmin

  37. Ashleigh on February 26th, 2014

    You need to be a part of a contest for one of the greatest
    websites on the internet. I’m going to highly recommend this blog!

  38. the loan depot lending company on March 6th, 2014

    I knοw this if ߋfff topic but I’m looling injto starting myy oown weblog
    and was wondering what all is ոeeded to get setup?
    I’m assuming ɦaving a blog like yours would cost a pretty penny?

    I’m noot very internet smart so I’m not 100% positive.

    Any suggestions or advice would be greatly appreϲiated. Many thaոks

  39. Y a des limites Télécharger on March 6th, 2014

    Ahaa, its nice discussion about this post at
    this place at this blog, I have read all that, so at this time me also commenting at
    this place.

    Take a look at my weblog: Y a des limites Télécharger

  40. Pompei Telecharger on March 7th, 2014

    Quality articles is the crucial to invite the visitors to pay
    a quick visit the website, that’s what this site is providing.

    my homepage; Pompei Telecharger

  41. http://photopeach.com on March 8th, 2014

    Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! By the way, how
    can we communicate?

  42. need cash loans on March 9th, 2014

    The car breaks down, a child becomes ill, something in the house needs repair, and suddenly you owe more than you
    have sitting in the bank. All that you need
    to at present is just fill an online application form with your correct details like your address proof, contact number, ID proof,
    bank account, employment letter, and so on. * That it is safe -
    your monetary info is not shared with other folks.

  43. I almost never comment, however i didd a few searching and wound up
    here Contour forms and Umbraco members - Tim Geyssens, Umbraco developer.
    Andd I actually do have a couplee of questions for you
    if you tend not to mind. Could it be simply me orr does itt apper like a few of these remarks look like written by brain dead visitors?
    :-P And, if you are writing at dditional social sites, I’d like to keep
    up with everything fresh you have to post. Could you make a list of every one of your shasred sitres like your linkedin profile, Facebook
    page or twitter feed?

    Here is mmy homepage :: windows 8 loader daz free download

  44. tomorrowland 2014 kaarten on March 13th, 2014

    Good day very nice website!! Guy .. Excellent ..
    Superb .. I’ll bookmark your website and take the feeds additionally?
    I am satisfied to seek out numerous useful information right here in the
    post, we want work out extra strategies in this regard, thank
    you for sharing. . . . . .

    Review my webpage; tomorrowland 2014 kaarten

  45. xplocial on March 18th, 2014

    First off I would like to say terrific blog!
    I had a quick question that I’d like to ask if you don’t mind.
    I was curious to know how you center yourself
    and clear your mind prior to writing. I’ve had a tough time clearing my thoughts in getting my thoughts out
    there. I truly do enjoy writing but it just seems like the first 10 to 15 minutes tend to be wasted simply just trying to figure out
    how to begin. Any recommendations or tips? Thank you!

  46. Trena on March 20th, 2014

    I know this if off topic but I’m looking into starting my own blog and was curious what all is needed to
    get setup? I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web smart so I’m not 100% certain.
    Any tips or advice would be greatly appreciated. Thanks

    Here is my web blog: click (Trena)

  47. Massage Omaha on March 22nd, 2014

    I drop a comment when I like a article on a site or if I have something to valuable to contribute
    to the conversation. It’s triggered by the sincerness
    displayed in the post I read. And after this article Contour forms and Umbraco members - Tim
    Geyssens, Umbraco developer. I was moved enough to drop a comment :-) I do have a couple of questions for you if it’s allright.
    Is it simply me or does it appear like some of these responses come across
    like they are left by brain dead visitors?
    :-P And, if you are posting on additional online social sites, I would like to keep up with everything fresh you have to post.
    Would you list the complete urls of all your community sites like your twitter feed, Facebook page or linkedin profile?

  48. Norma on March 25th, 2014

    For now, start with these suggestions to appease your vampire
    appetite. The state off the water supply is more important than the earlier comptitions between the groups
    and in oeder to solve the problem, the groups hadd to cooperate wiyh each
    other. Incident Report Notes; Partt I of IIIDebrief Notes of Lt Martin,
    notes taken by Capt Allen - Witnesses: General Mc - Bride, Colonel Wagner, Lieutenant Colonel Quigley,
    and Sergeant Major Serrano.

  49. sleep on March 27th, 2014

    Put a star at the peak or use a different colored line for emphasis.
    Some will say that it goes into a starvation mode but this does not happen until
    after the body has been in the fasting mode for about a month.
    That’s enough to wake up someone who is trying to fall asleep.

    My web site sleep

  50. Thank you for the good writeup. It actually used to be a leisure
    account it. Glance complex to far delivered agreeable from
    you! By the way, how could we be in contact?

  51. api php sms on April 16th, 2014

    Hi, I do believe this is a great blog. I stumbledjpon it ;) I will come bsck once again
    sinhce i have saved as a favoite it. Monewy and freedom iis
    tthe best way to change, may you be rich andd continue to help other
    people.

    Check out my web site … api php sms

  52. fonction d'envoi de sms on April 16th, 2014

    This piece of writing presents clear idea in
    favor off the new users of blogging, that really how to
    do blogging.

  53. Kalkulator on April 18th, 2014

    Hello everyone, it’s my first pay a quick visit at this web page, and article is actually fruitful for me, keep up posting these
    types of articles or reviews.

    Also visit my web-site - Kalkulator

  54. http://Maxwellborowski.Pen.io/ on April 19th, 2014

    Useful information. Fortunate me I found
    your website by accident, and I’m stunned why this accident didn’t took place earlier!
    I bookmarked it.

  55. Giselle on April 20th, 2014

    I do not create many remarks, however i did
    some searching and wound up here Contour forms and Umbraco members -
    Tim Geyssens, Umbraco developer. And I do have a couple of questions for you if it’s allright.
    Could it be just me or does it look like a few of thhe commennts appsar like coming from brain dead folks?
    :-P And, if you are writing at afditional online social sites, I’d like to keep
    up with everything fresh you have to post. Could you list of the complete urls of all your community sits like
    your twitter feed, Facebook page or linkedin profile?

    Also visit my web page annbonces immobilières - Giselle,

  56. emulateur 3ds pour pc on April 22nd, 2014

    Howdy I am so grateful I found your blog, I really found you by
    mistake, while I was looking on Aol for something else, Anyways I am here now and would
    just like to say thank you for a remarkable post and a all round
    thrilling blog (I also love the theme/design), I don’t have time to go through it all at the
    moment but I have bookmarked it and also included your RSS
    feeds, so when I have time I will be back to read a great deal more,
    Please do keep up the fantastic work.

  57. Rio 2 Télécharger on April 24th, 2014

    Very good article! We are linking to this particularly great content on our website.
    Keep up the great writing.

    Also visit my web blog Rio 2 Télécharger

Leave a Reply