Need help figuring how to do a synchronous glide record query in a onSubmit client script for scoped app.

Jon Ulrich
Kilo Guru

I am working on a scoped application where i need an onSubmit client script to make sure there is an attachment inserted before the record can be submitted.

The problem I have run into is both glideAjax and glideRecord will not allow synchronous queries form client script, and asynchronous onSubmit scripts simply don't work.

Any ideas out there?

1 ACCEPTED SOLUTION

Harish Viswanat
Giga Contributor

Create a business rule to query attachment table. Be aware that hasAttachments() will not work in Scoped applications.

View solution in original post

1 REPLY 1

Harish Viswanat
Giga Contributor

Create a business rule to query attachment table. Be aware that hasAttachments() will not work in Scoped applications.