if-else logic changed to allow single-line field on saf mobile on ios devices only