NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: agustinh2000 on June 26, 2014, 07:32:10 AM

Title: EIP message
Post by: agustinh2000 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

Title: Re: EIP message
Post by: Bruce 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
Title: Re: EIP message
Post by: agustinh2000 on June 27, 2014, 06:17:35 AM
yes, that same
Title: Re: EIP message
Post by: Bruce 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
Title: Re: EIP message
Post by: agustinh2000 on July 02, 2014, 07:26:32 AM
In Browse.

Validate EIP for Field

IF (condition)
            loc:Invalid = 1           
            loc:alert   = 'message'
END
Title: Re: EIP message
Post by: Bruce 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