add data type guesser

Use form data to guess which field type should be used.