NetTalk Central

Author Topic: loc:alert / Invalid message display options?  (Read 2854 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • Email
loc:alert / Invalid message display options?
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11242
    • View Profile
Re: loc:alert / Invalid message display options?
« Reply #1 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.

JohanR

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • Email
Re: loc:alert / Invalid message display options?
« Reply #2 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


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11242
    • View Profile
Re: loc:alert / Invalid message display options?
« Reply #3 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