Jump to content
MuchDev

Computed field module

Recommended Posts

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. 

Share this post


Link to post
Share on other sites

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. 

  • Like 3

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...