Now, I've seen this swift error posted all over stackoverflow. However, the way they handle it won't seem to work in my situation.
if ( 
        fieldType == "checkbox" ||
        fieldType == "time" ||
        fieldType == "birthdate" ||
        fieldType == "datetime" ||
        fieldType == "phone" ||
        fieldType == "payment" ||
        fieldType == "stripe" ||
        fieldType == "paypal" ||
        fieldType == "paypalpro" ||
        fieldType == "address" ||
        fieldType == "2co")
{
Not sure how I can fix it. There must be some way to lower the complexity of it.