Detect prefix from form