NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on June 05, 2013, 10:39:18 PM

Title: loc:alert / Invalid message display options?
Post by: JohanR on June 05, 2013, 10:39:18 PM

Hi,

What options are available for the display of the loc:alert invalid message?

1) Popup message
2) At top of form (this causes all fields to move down when the message is displayed)

Are there any options where the invalid message appears next to the field?

thanks

Johan
Title: Re: loc:alert / Invalid message display options?
Post by: Bruce on June 05, 2013, 11:09:28 PM
yes. this is in the comment field. So typically put validation information in the comment (ie information to the user on what you are expecting) and the class for the comment will change for invalid fields.
Title: Re: loc:alert / Invalid message display options?
Post by: JohanR on June 06, 2013, 12:34:12 AM

Hi Bruce

Is there a way to achieve the following via the current template?

When the form opens, no comments are displayed.
If any validation fails, then the comment field will display the error message.


thanks

Johan

Title: Re: loc:alert / Invalid message display options?
Post by: Bruce on June 06, 2013, 05:34:16 AM
maybe - try set the comment field to loc:alert.
you might need to play around a bit, but if the comment is a variable, you can set the variable to anything you like.

cheers
Bruce