Validate a form field based on a different field's dropdown list S’abonner
Using Bartender 2016 R9.
In my form, the user should either select from the Subcontractor dropdown list populated by a database or enter their badge number.
The following logic works on the OnNewRecord event (the model is designed to print multiple copies of a single label), but shows an unfriendly dialog box.
if Format.NamedSubStrings("Badge").Value="" and Format.NamedSubStrings("Subcontractor").Value="" then
Format.CancelPrinting("Either the subcontractor or your badge number must be specified")
If I put this in the OnProcessData event of Badge, the value of SubContractor is empty, even when a value has been selected, and it shows a friendly dialog box.
Is there a way to get the selection from the dropdown list during field validation ?
Vous devez vous connecter pour laisser un commentaire.