Create text string from form using conditions