The title says is all. I have a custom HTML script in my form where I have a diagram which lets users enter the fields into the diagram. I am able to enter the data into the diagram but after the submission that diagram made in custom html is empty.
Here is the javascript code.
<script> // This script connects the HTML inputs to Laserfiche form fields // It needs to be modified based on your specific Laserfiche field names document.addEventListener('DOMContentLoaded', function() { // Get all input fields var inputs = document.querySelectorAll('.form-field'); // Add event listeners to sync with parent form inputs.forEach(function(input) { input.addEventListener('change', function() { // This is where we would integrate with Laserfiche form fields // You'll need to modify this based on your specific Laserfiche setup // Example of how this integration might work: try { // Attempt to access parent Laserfiche form context if (window.parent && window.parent.LFFormFields) { window.parent.LFFormFields.setValue(input.name, input.value); } } catch (e) { console.log('Integration with parent form failed:', e); } }); }); }); </script>