Using Variables to Dynamically Populate Fields in Gravity Forms

I was building a form using Gravity Forms (aff. link) on the Rivers website the other day and came across the need to add a variable used in the back-end of the site and place the value in a form. Gravity Forms does allow you to dynamically set the value of a field and you […]

',a='
';return t.replace("ID",e)+a}function lazyLoadYoutubeIframe(){var e=document.createElement("iframe"),t="https://www.youtube.com/embed/ID?autoplay=1";t+=0===this.dataset.query.length?'':'&'+this.dataset.query;e.setAttribute("src",t.replace("ID",this.dataset.id)),e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","1"),this.parentNode.replaceChild(e,this)}document.addEventListener("DOMContentLoaded",function(){var e,t,a=document.getElementsByClassName("rll-youtube-player");for(t=0;t