Pre-compile subform fields #875
-
Hello, i would like to achieve this: the possiblity to pre-compile subform fields based on a dropdown choice. Like this: I have a view called "services" that has basically 2 fields:
I have created an admin view called "job" that has a subform 3 fields in it:
I can handle the mulitply with a simple javascript, but i don't know how to retrieve in the subform the "cost per hour" of the selected service. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is done with JavaScript and a good understanding of how the sub-form works... JCB has it all over the place so in terms of code you should be able to find examples. Short answer... subform has events and on those events you can act. |
Beta Was this translation helpful? Give feedback.
This is done with JavaScript and a good understanding of how the sub-form works... JCB has it all over the place so in terms of code you should be able to find examples.
Short answer... subform has events and on those events you can act.