how to create freeform by user inputs