ivan77 Posted 16 hours ago Report Share Posted 16 hours ago Hi, Is it possible to disable Kilometer Column if Column Jenis Klaim value = X ? I can do this if on Submission / Single record Form, but cant on tabular report Rgds, Quote Link to comment Share on other sites More sharing options...
0 CoopperBackpack Posted 15 hours ago Report Share Posted 15 hours ago Hello @ivan77, Please test this code in the Footer of the Results page. I used the 'X' value as an example. Please replace it with the value that you need to use. <script> document.addEventListener('DataPageReady', disableFieldHandler) function disableFieldHandler(e){ const jenisKlaimField = document.querySelector('#InlineAddJenis_Klaim'); const kilometerField = document.querySelector('#InlineAddKilometer'); jenisKlaimField.addEventListener('change', (event) => { let selectedValue = event.target.options[event.target.selectedIndex].value; if(selectedValue === 'X'){ kilometerField.disabled = true; kilometerField.value = ''; } else { kilometerField.disabled = false; } }) document.removeEventListener('DataPageReady', disableFieldHandler) } </script> Quote Link to comment Share on other sites More sharing options...
Question
ivan77
Hi,
Is it possible to disable Kilometer Column if Column Jenis Klaim value = X ?
I can do this if on Submission / Single record Form, but cant on tabular report
Rgds,
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.