Answered

Required format in string (input validation)

Hi Bizagi,

I need to change the format of a data.

I have an attribute of type string. In the Form No. 1 enter information in this format: XXXYYYZZZQ.

I need to build an expression ("to exit the task" or "to enter the next task") to alter the format to: XXX.YYY.ZZZ-Q.

I suppose I should extract the characters, assign them to variables and then concatenate.

Please if you can help me with this problem.

Thanks.

PD: sorry my english is not very good...

photo
0

Dear Sebastian,

You may choose to use the regular expressions property for your fields, to define this format.

Your String attribute would have the definition of a regular expression to validate that the inputted format goes according to your "XXX.YYY.ZZZ-Q" expected chain.

Your required regular expression would be defined something like:

"\b[0-9]{3}.[0-9]{3}.[0-9]{3}-[0-9]$\b"

Best regards,

photo
0

Thanks a lote!!