You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Forcing 2 Decimal Places on a String Property in Mobility

edited Mar 21, 2019 10:42PM in Field Service 6 comments

Summary

A field called "subtotal_markup_parts" has a regex configured, but the values are not constrained once the field is calculated

Content

Hello,

The customer has a string property called "Subtotal w/ Markup" [label = subtotal_markup_parts] which has a regex configured:
/^(?!.{8,})\d{1,6}(\.\d{1,2})?$/

The regex is supposed to force the value of this property to be limited to 2 decimal places, however it seems that since this property displays the calculation of two other properties, the regex doesn't work. See the below 3 screenshots:
 


subtotal_markup_parts is configured as so =  subtotal_markup_parts.png
name: Subtotal w/ Markup
label: subtotal_markup_parts

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!