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 305 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

     

  • Comment author was deleted

    Feb 11, 2014 @ 09:01

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

  • Comment author was deleted

    Feb 11, 2014 @ 09:04

    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 305 karma points
    Feb 11, 2014 @ 10:01
    Kenny Burns
    0

    Cheers Tim! :)

  • Comment author was deleted

    Feb 11, 2014 @ 10:05

    No prob should write some better docs on it ;)

Please Sign in or register to post replies

Write your reply to:

Draft