JasonPhenicie
8 years agoQrew Trainee
Remove disallowed characters from a text field
Our app has a [Project Name] field in which our users can input whatever project name they like. We then have a [Project ID] field that uses 9 Part([Project Name],1," ") formulas to combine the first words of the project name without spaces:
Right(ToText(Year(ToDate([Date Created]))),2) & Right("0" & ToText(Month(ToDate([Date Created]))),2) & Right("0" & ToText(Day(ToDate([Date Created]))),2) & If(Length([Master Project Abbreviation]) > 0,"-" & [Master Project Abbreviation]) & "-" & If(Length([Department Abbreviation]) > 0,[Department Abbreviation],[Collaborator Department Abbreviation]) & "-" & Trim( Part([Project Name],1," ") & Part([Project Name],2," ") & Part([Project Name],3," ") & Part([Project Name],4," ") & Part([Project Name],5," ") & Part([Project Name],6," ") & Part([Project Name],7," ") & Part([Project Name],8," ") & Part([Project Name],9," ") )This project ID also becomes a folder name in our file storage. However, our file storage can't handle characters like quotation marks, colons, semicolons, etc. Is there a way to strip disallowed characters when reading data from a text field?