Is it possible to create a dynamic custom code block?

Dear @SamEasy, thanks for the clarification. You will need to use the following custom code to pass the logged-in user data to your form: How to pass logged-in user data to embedded typeform

Regarding passing the Typeform ID, you will need to modify the shared custom code.