How to fix Gravity Forms conditional logic issues in Elementor Popups

I love working with Elementor but their popup builder within Elementor Pro has created quite a few headaches for me over the past few years. 

In this particular instance, Elementor prevents Gravity forms from working when the form is embedded in an Elementor popup AND when the forms has conditional logic included.

This solution was originally published on this website but after having trouble finding it, I decided to create this quick post in the hope that it might help someone else when looking for a solution to this problem.

				
					<script> jQuery(document).on( 'elementor/popup/show', function() { jQuery(document).trigger('gform_post_render', [6, 1]); }); </script>