Susan Posted March 9, 2017 Share Posted March 9, 2017 I have a field with various prices ($10, for example). Is it possible to write a rule that would return that price doubled. ($20)? Quote Link to comment Share on other sites More sharing options...
step Posted March 9, 2017 Share Posted March 9, 2017 var price = "$20" // Your field here return '$' + StringToNumber(price.replace(/[^\d\.]/g, '')) * 2; Quote Link to comment Share on other sites More sharing options...
Susan Posted March 9, 2017 Author Share Posted March 9, 2017 That works perfectly. Thanks Ste. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.