NetTalk Central

Author Topic: EIP message  (Read 4723 times)

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
EIP message
« on: June 26, 2014, 07:32:10 AM »
Hello, I want to put a message (loc:alert) in a EIP (date) field, but it does not work, any ideas?

Thanks


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: EIP message
« Reply #1 on: June 26, 2014, 09:48:07 PM »
Hi Augustin,

I'm not sure what exactly you mean. Are you saying that you'd like to do validation on the date field when it is entered, and if it is invalid then to display a message to the user to say that?

cheers
Bruce

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: EIP message
« Reply #2 on: June 27, 2014, 06:17:35 AM »
yes, that same

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: EIP message
« Reply #3 on: June 29, 2014, 10:27:20 PM »
so what exact code have you added to the Server-side? And where is it?
(hint: There's a Validation example you may want to look at for an idea of the code to enter, and where.)

cheers
Bruce

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: EIP message
« Reply #4 on: July 02, 2014, 07:26:32 AM »
In Browse.

Validate EIP for Field

IF (condition)
            loc:Invalid = 1           
            loc:alert   = 'message'
END

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: EIP message
« Reply #5 on: July 09, 2014, 06:09:48 AM »
I've made it a bit easier for build 8.18

The code you want is
  If MAI:SizeLimit = ''
    loc:Invalid = 'MAI:SizeLimit'
    MAI:SizeLimit:IsInvalid = true
    loc:alert = 'Bad, Bad User! Get it right next time!'.
  End