Doctype - Based on condition It shows Field

If I select multiple choice the type of answer should be json. If i select short text the type of the answer should be short text? how to write this condition.