NetTalk Central

Author Topic: wrong dct validation  (Read 3618 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
wrong dct validation
« on: April 28, 2020, 12:10:55 PM »
I have a form in which I use some of the clients fields.
Theres one field in the clients table called password that is check as requeired in the dct but it is not use in the form and even if I set the validation to NO it still validate the field and I cannot save the form.
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: wrong dct validation
« Reply #1 on: April 28, 2020, 07:51:48 PM »
Hi Alberto,

I think what you are saying is that it is marked as required in the dict, but on your form you want to treat it as "not required".

In this case, you probably also do not want to overwrite the existing value if the field is left blank.

If so do not put the field on the form. Rather put a local-pad variable on the form, and then move the value to the password field only if the user puts something in there. (In ValidateRecord routine).

cheers
Bruce


Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: wrong dct validation
« Reply #2 on: April 29, 2020, 03:28:55 AM »
Hi Bruce,
The field is marked as required in the dict
The field is NOT on the form and the form is validating that field.
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: wrong dct validation
« Reply #3 on: May 02, 2020, 04:12:36 AM »
please post an example so I can duplicate and fix.

cheers
Bruce