Created addCustomField function in SwiftForm class.