Copied to clipboard

Flag this post as spam?

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


  • Kenny Burns 173 posts 304 karma points
    Feb 11, 2014 @ 00:24
    Kenny Burns
    0

    Contour - Additional Settings

    Hey Tim,

    I'm trying to insert a ReCaptcha field through code first and having a little trouble (getting an object not defined error) - but i think its related to the theme not being set. So in my class I have:

                   [Field(FormPages.General, FormFieldsets.General, Tooltip = "ReCaptcha", Type = typeof(Recaptcha),
               Mandatory = true, RequiredErrorMessage = "Please enter the words")]
            public Recaptcha ReCaptcha { get; set; }

    ...but I cannot see how to set the theme (color) - any ideas? I'm sure its got something to do with AdditionalSettings... maybe. :)

    Any help much appreciated! 

    Cheers,

    Kenny

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 11, 2014 @ 09:01
    Tim Geyssens
    0

    Yup it's the additional settings that you need to set :) let me dig up an example

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 11, 2014 @ 09:04
    Tim Geyssens
    100

    Check it out http://www.nibble.be/?p=220

     [Field("Leave a comment", "Your comment", 
               "Language:en","Theme:clean",
               Mandatory = true,
               Type = typeof(Contour.Contrib.FieldTypes.ReCaptcha))]
            public string Captcha { get; set; }
  • Kenny Burns 173 posts 304 karma points
    Feb 11, 2014 @ 10:01
    Kenny Burns
    0

    Cheers Tim! :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 11, 2014 @ 10:05
    Tim Geyssens
    0

    No prob should write some better docs on it ;)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies