More in this section

Forums / Developing with Sitefinity / Removing username requirement in registration widget

Removing username requirement in registration widget

3 posts, 0 answered
  1. Kierstin
    Kierstin avatar
    7 posts
    Registered:
    19 Nov 2015
    07 Feb
    Link to this post

    We are looking to recreate a tool and put it in Sitefinity. To use this tool , we only ask that the users enter their email. We do not want them to have a username, password, etc. Is there a way to remove the username requirement from the widget completely? 

     

    Without this error:

    Server Error in '/' Application.

    A required control was not found in the template for "~/SfCtrlPresentation/OpenAccessDataProvider_1bc6514546ba62e18cdfff0000376e70.ascx". The control must be assignable from type "Telerik.Sitefinity.Web.UI.Fields.TextField" and must have ID "userName".Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: Telerik.Sitefinity.Web.UI.TemplateException: A required control was not found in the template for "~/SfCtrlPresentation/OpenAccessDataProvider_1bc6514546ba62e18cdfff0000376e70.ascx". The control must be assignable from type "Telerik.Sitefinity.Web.UI.Fields.TextField" and must have ID "userName".

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    08 Feb
    Link to this post

    The way webforms works you can't just delete it... Username is kinda required... But in the next version should be removed and email will be the unique field.

     

    In the meantime the easiest thing to do is to just hide it with css and wire up some JavaScript such that whatever they type into the email box gets invisibility copied to the hidden username box.

  3. Kierstin
    Kierstin avatar
    7 posts
    Registered:
    19 Nov 2015
    23 Feb in reply to Steve
    Link to this post
    Great. Thank you!
3 posts, 0 answered