Try our conversational search powered by Generative AI!

Password field in start page settings

Vote:
 

What we need is for site admin to be able to setup an SMTP server's credentials on the site's start page. In that case the admin will need to provide server's address, username and password. Is there a way to flag a start page's property as a password so when the field is created in the editor it is of type "password"?

#148400
May 12, 2016 2:45
Vote:
 

Hi,

You Could try to set ClientEditor and use ValidationTextBox as class

namespace Alloy.Models.Pages
{
    public class TestPage : SitePageData
    {
        [ClientEditor(ClientEditingClass = "dijit.form.ValidationTextBox", EditorConfiguration = "{type: 'password'}")]
        public virtual string Pwd { get; set; }

    }
}
#148403
May 12, 2016 7:34
Pinkesh Jain - Mar 30, 2021 7:09
Thanks for posting the answer. This made it a whole lot simpler and faster to mask password fields. But, this worked for me with forward slashes in the ClientEditingClass. So, instead of dijit.form.ValidationTextBox, I had to use dijit/form/ValidationTextBox.
Vote:
 

That worked as a charm. Thank you!

#148404
May 12, 2016 7:38
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.