Good day,
Since we implemented the update recently we have been experiencing the following issues -
1. If a table in a Form has the Append Rows to the Rows populated option ticked, Field rules applied to those Fileds no longer work. Show/Hide etc has no action even when the rules are met. Once you remove the Append option and set Range of Rows or Set Rows, the Field options work.
2. A javascript that used to run when the Form loaded no longer runs until the user Clicks. The javascript is below.
$(document).ready(function () { $('.cf-table-block').on('change', 'input', PrivateCalc); function PrivateCalc() { var Fuel = 0; var fuelTotal = 0; var privateTotal = 0; $('.cf-table-block tbody tr').each(function () { Fuel = parseNumber($(this).find('.sum input').val()); $(this).find('.private input:checked').each(function () { if($(this).val() == "Private"){privateTotal += Fuel;} }); fuelTotal += Fuel;}); // Populate totals $('.total input').val(fuelTotal.toFixed(2)); $('.total input').attr('readonly', 'True'); //makes the field read only after we give it a value $('.privateTotal input').val(privateTotal.toFixed(2)); $('.privateTotal input').attr('readonly', 'True'); //makes the field read only after we give it a value } function parseNumber(n) { var f = parseFloat(n); //Convert to float number. return isNaN(f) ? 0 : f; //treat invalid input as 0; } }); $(document).ready(function () { $('.cf-table-block').on('change', 'input', receiptCalc); function receiptCalc() { var Fuel = 0; var fuelTotal = 0; var privateTotal = 0; $('.cf-table-block tbody tr').each(function () { Fuel = parseNumber($(this).find('.sum input').val()); $(this).find('.receipt input:checked').each(function () { if($(this).val() == "No"){privateTotal += Fuel;} }); fuelTotal += Fuel;}); // Populate totals // $('.total input').val(fuelTotal.toFixed(2)); // $('.total input').attr('readonly', 'True'); //makes the field read only after we give it a value $('.receiptTotal input').val(privateTotal.toFixed(2)); $('.receiptTotal input').attr('readonly', 'True'); //makes the field read only after we give it a value } function parseNumber(n) { var f = parseFloat(n); //Convert to float number. return isNaN(f) ? 0 : f; //treat invalid input as 0; } });
Thank you for any assistance
Ian