Webform with HTML would be best.
But depends on a lot of things...
InDesign is not a web authoring program.
But it can produce fillable forms ... which are PDF.
So if you want it on your site - a webform is best.
If you want it as link they fill out and submit then InDesign.