Reload Calculated Field
Hi!
This is only possible with JavaScript. You need to subscribe to change events on these fields and run a calculation function when the value changes. More on this for various fields here - https://spform.com/javascript-framework ... eld-values
You can change the value of the calculated field by using jQuery:
1) Add a CSS class to the field in Forms Designer, e.g. "calc_field"
2) Add a code:
Where "newValue" is a recalculated value.
If you have any questions - let me know!
This is only possible with JavaScript. You need to subscribe to change events on these fields and run a calculation function when the value changes. More on this for various fields here - https://spform.com/javascript-framework ... eld-values
You can change the value of the calculated field by using jQuery:
1) Add a CSS class to the field in Forms Designer, e.g. "calc_field"
2) Add a code:
Code: Select all
$(".calc_field").find(".ms-formbody").html(newValue);
If you have any questions - let me know!
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear crolle,
This code is executed from JS editor: For example, you want to combine Title and Status field. It should look something like this:
This code is executed from JS editor: For example, you want to combine Title and Status field. It should look something like this:
Code: Select all
function updateCalcField(){
var newValue = fd.field('Title').value() + " " + fd.field('Status').value();
$(".calc_field").find(".ms-formbody").html(newValue);
}
fd.field('Title').change(function(){
updateCalcField();
});
fd.field('Status').change(function(){
updateCalcField();
});
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests