Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Setting input validation properties?

 Post Reply Post Reply
Author
Stuart Clennett View Drop Down
New Member
New Member
Avatar

Joined: 04 Jan 2019
Posts: 24
Post Options Post Options   Quote Stuart Clennett Quote  Post ReplyReply Direct Link To This Post Topic: Setting input validation properties?
    Posted: 08 Jan 2019 at 4:49pm
Hi 

Is there anyway I can set input validation properties like "required" and "autofocus" please?

Thanks
Back to Top
Weetch Russell View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 Dec 2012
Posts: 180
Post Options Post Options   Quote Weetch Russell Quote  Post ReplyReply Direct Link To This Post Posted: 08 Jan 2019 at 5:05pm
that would be nice as would adding either the HTML5 validation types (email, number etc) and pattern (this also includes required as a keyword) to the TWebEdit control to make life simpler. However, I guess you can do that in CSS or in the template.

https://www.the-art-of-web.com/html/html5-form-validation/
Back to Top
Stuart Clennett View Drop Down
New Member
New Member
Avatar

Joined: 04 Jan 2019
Posts: 24
Post Options Post Options   Quote Stuart Clennett Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:24am
Simplest and most flexible solution would be to have a standard CustomAttributes string property where we could add such things, which could then be added to the tag.
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8595
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 11:39am
We will expose required & autofocus on input controls
Back to Top
Stuart Clennett View Drop Down
New Member
New Member
Avatar

Joined: 04 Jan 2019
Posts: 24
Post Options Post Options   Quote Stuart Clennett Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 11:42am
Great thanks.

Could you include the "Pattern" attribute too ?


Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8595
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 12:10pm
Definitely!
Back to Top
Stuart Clennett View Drop Down
New Member
New Member
Avatar

Joined: 04 Jan 2019
Posts: 24
Post Options Post Options   Quote Stuart Clennett Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 12:11pm
:-)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down