NetTalk Central

Author Topic: Synchronise message from WebPage  (Read 2760 times)

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Synchronise message from WebPage
« on: December 05, 2011, 01:54:05 AM »
I cannot seem to synchronise the message from the webpage and the message that appears on top of the screen in red.

Please see attachment, these 2 fields only have 'Required' ticked on.  

The same thing happens when I check in my code to make sure one of the contact no's is filled out and there is still a required field not filled in, 2 different messages. This also means I do not jump to the the right field to fix (orraait, there is always 2 possibilities).
This is a MemoryForm that writes to a file and my code is in Validate All, Start.

Thanks
Charl

C9.056, NT5.43




[attachment deleted by admin]
« Last Edit: December 05, 2011, 01:55:44 AM by charl99 »

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Synchronise message from WebPage
« Reply #1 on: December 08, 2011, 12:18:11 AM »
Well, it appears I am the only one to get this funny behaviour.

Can somebody please tell me what I am doing wrong?


Koen Tjoa

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Email
Re: Synchronise message from WebPage
« Reply #2 on: December 08, 2011, 05:46:44 AM »
Hi Charl,

I am not sure if I get your point right.

But in the ValidateValue::Foo:Datum  Routine there is a line loc:alert = clip('Datum:') & ' ' & p_web.site.RequiredText

and in the Comment::Foo:Datum  Routine there is a line  loc:comment = p_web._jsok(p_web.site.RequiredText)

This is probably why your messages differ. Both template generated, the latter only when ‘Generate Automatic Comments” is ticked on the Validation tab of the NetWebForm settings.

Cheers,
Koen