Title: Server_side wait for result
Last modified: January 12, 2024

---

# Server_side wait for result

 *  Resolved [uafinsee](https://wordpress.org/support/users/uafinsee/)
 * (@uafinsee)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/server_side-wait-for-result/)
 * Hello!
 * What is the proper way to have desired behavior:
   let r = SERVER_SIDE(‘myFunction’,
   myParams);wait till r gets responseonly after that run other code
 * I have one calculated field with many functions in it, and I call the server 
   2-4 times. The first 3 calls the behavior is: JS runs the next code without waiting
   for response from server, then gets response and reruns the code with this response.
   
   So I was able to have a check
 * if (typeof serverResult !== ‘undefined’ && serverResult !== null && serverResult.
   length > 0) {
   code after receiving response}
 * And everything worked. But yesterday I added a fourth call to the server and 
   function finishes before receiving any response.
 * I see in Console that request was sent correctly and response was received, but
   I can’t force JS to wait for it.

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/server_side-wait-for-result/#post-17338323)
 * Hi! We’d like to help but we can’t reply about that in this forum. We are not
   allowed to support any customers in these forums and the server side equations
   are distributed with the Developer and Platinum plugin versions.
 * For pro or commercial product support please contact us directly on our site.
   This includes any pre-sales topics as well.
 * Commercial products are [not supported in these forums](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).
   We will happily answer this and any other questions you can have [on our own site](https://cff.dwbooster.com/contact-us).
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Server_side wait for result’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/server_side-wait-for-result/#post-17338323)
 * Status: resolved