How To Create Dynamic Input Function