Hi Everyone,
1. How can I restrict dynamic text field to accept decimal format only (i.e. 123.45)?
2. How can I create formula/calculated fields using other dynamic fields (i.e. TotalAmount = Quantity x PriceUnit)?
Thanks!
Dynamic Fields restrictions and formulas
Moderator: crythias
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Dynamic Fields restrictions and formulas
1) regex in the setup of DF. maybe [\d\.]+ or \d+\.{0,1}\d*
2) javascript.
Explanation of [\d\.]+ is
1 or more of digits or periods
\d+\.{0,1}\d* is
1 or more digits, exactly zero or 1 periods/decimal separators, and zero or more digits following the period.
2) javascript.
Explanation of [\d\.]+ is
1 or more of digits or periods
\d+\.{0,1}\d* is
1 or more digits, exactly zero or 1 periods/decimal separators, and zero or more digits following the period.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 10
- Joined: 09 Sep 2015, 08:15
- Znuny Version: 3.3.14
- Real Name: Phil
- Company: EWS
Re: Dynamic Fields restrictions and formulas
Great! I'll try this. Thanks! 
