Gravity Forms Create Variable For Users Without Pre-existing Entries

I know this is an old question… but… I just discovered it while fighting the same problem. The solution ended up being pretty simple: Doublequotes are needed around the ID=!

So in this example the working solution just needs:

return do_shortcode( '[gravityform id="1"]' );