Is there a way to create invite codes to complete forms?

I am creating a school registration form on our website and was wondering if there was an invite code we could use so that only those with the invite code can fill out or complete the registration form.

Does Gravity Forms have this or is there a different plugin that works with Gravity forms?

Thank you in advance!