Gravityfrom shortcode embed is not working with Popup

I try to use Popup with Gravity From. So user can provide their email for lead gen. But when I put in Gravity From shortcode, it error said "Uncaught ReferenceError: gf_apply_rules is not defined"

How to correctly integrate Gravityfrom with Popup?