1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Custom fields for forms?

Custom fields for forms?

5 posts, 1 answered
  1. Basem
    Basem avatar
    131 posts
    Registered:
    22 Dec 2010
    22 Mar 2011
    Link to this post
    I would like to add properties to the form settings in the attached screenshot. How can I add form settings?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    22 Mar 2011
    Link to this post
    Hi Basem,

    Unfortunately it is not possible to make changes to this section. If you can provide some details I will try to come up with a suggestions.


    All the best,
    Ivan Dimitrov
    the Telerik team
  3. Basem
    Basem avatar
    131 posts
    Registered:
    22 Dec 2010
    22 Mar 2011
    Link to this post
    Ooook :) The next way I was thinking of is storing the form properties on the form control on the page level (instead of the form level). So what I did was inherit "Telerik.Sitefinity.Modules.Forms.Web.UI.FormsControl" and put a public property there so I can set it on the page level. I added my new derived control in the toolbox and am using it.

    Problem is that there is no "Advanced" button to show the form control properties. I am referring to when in the page edit mode. When editing the derived form control, I can not see or set my public derived properties. Any easy way to make the advanced button magically show? Or maybe an easy way to extend the control designer without re-creating lots of logic or interface code. Thanks for any help.
  4. Basem
    Basem avatar
    131 posts
    Registered:
    22 Dec 2010
    22 Mar 2011
    Link to this post
    Here is a visual:

    public class CustomFormsControl: Telerik.Sitefinity.Modules.Forms.Web.UI.FormsControl
    {
        /// <summary>
        /// Gets the SomeTestProp.
        /// </summary>
        [Category("Override Values")]
        public bool SomeTestProp
        {
            get;
            set;
        }
    }
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    28 Mar 2011
    Link to this post
    Hi Basem,

    Please take a look at this post

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/how-to-override-extend-formscontroldesigner.aspx

    I sent a reply there about the same question.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Answered
5 posts, 1 answered