MuchDev Posted December 7, 2016 Share Posted December 7, 2016 Hey guys, just working on beefing up a admin view and was wondering if anyone had already made a module that computes its value based on a computation of other fields. I would like to run some math on several fields to deal with deducting and computing taxes based on several other fields on a form and thought this could make a pretty slick module. Most simply what I would like is a field that is only used on edit views which allows me to do something as simply as (field1 + field2) / field3. Possibly something that can be customized on each template or the like. Link to comment Share on other sites More sharing options...
Robin S Posted December 7, 2016 Share Posted December 7, 2016 Not to put you off making your module, but I believe RuntimeMarkup can do this. 3 Link to comment Share on other sites More sharing options...
MuchDev Posted December 7, 2016 Author Share Posted December 7, 2016 Good call! I will give this a go Thanks for the recommendation. Link to comment Share on other sites More sharing options...
kongondo Posted December 7, 2016 Share Posted December 7, 2016 If going that route, I'd recommend you put your code in a file and call it via wireRenderFile() in the module. Have a look at the support thread for some of things guys have been able to pull off using the module. 3 Link to comment Share on other sites More sharing options...
MuchDev Posted December 7, 2016 Author Share Posted December 7, 2016 That is a great idea! Thank you kongondo I will tinker with this this afternoon. Awesome looking module!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now