This topic is locked

Field Events

5/2/2023 4:03:53 PM
PHPRunner General questions
L
leon author

Is there any way that you can check if a record exists using field events (blur)? I would like to check if an invoice number exists as i enter it.
I have searched everywhere and used ChatGTP but cannot find any code that does not give an error.
I currently use "before record added" event to do this and it works fine, it just seems ridiculous that one has to go through the whole process of entering all the data only to find that the record exists at the end..
Any help on this would be GREATLY appreciated.
Regards,
Leon.

W
wedi 5/3/2023

Hi Leon,
have you seen this video from Corrie?
https://www.youtube.com/watch?v=4WGWbCUHCOc
I think this could help you. In "OnServer" you can create the check whether the invoice record exists or not and if the record exists you can show a message or a popup with swal() in "OnAfter".
Regards,
wedi

L
leon author 5/4/2023

Thanks Wedi.
This is perfect.
Regards,
Leon