aam82 Posted July 26, 2016 Report Share Posted July 26, 2016 Hi, it seems that the only way to make a field available as a PARENT FIELD for a cascading dropdown, is to make that field editable; otherwise, that field is not an option. I need to filter a dropdown according to a field that I can't allow to be edited. This is what I need on a Bulk Edit on a report: field type: cascading dropdown filter by: parent field parent field type: display only Has anyone run into this before? Any ideas? Thanks Quote Link to comment Share on other sites More sharing options...
JEllington Posted July 26, 2016 Report Share Posted July 26, 2016 I have experienced this problem before. The field (as you pointed out) needs to be editable for CB to be able to work with the field. The work around I used was to make the field editable, then hide it from displaying.Put the parent field you would like to be hidden between two HTML Blocks. Then in the first HTML Block insert <table style="display:none;"> then close the HTML table tag in the following HTML block </table>. This allows CB to perform operations on the parent field and hides it from displaying on the datapage. Quote Link to comment Share on other sites More sharing options...
aam82 Posted July 26, 2016 Author Report Share Posted July 26, 2016 Thanks, I can probably live with that! Quote Link to comment Share on other sites More sharing options...
MayMusic Posted July 26, 2016 Report Share Posted July 26, 2016 If you want to show the parent value you can add HTML Block or virtual field and select the field there JEllington 1 Quote Link to comment Share on other sites More sharing options...
aam82 Posted July 27, 2016 Author Report Share Posted July 27, 2016 Thanks! Quote Link to comment Share on other sites More sharing options...
KlisaN137 Posted September 20, 2021 Report Share Posted September 20, 2021 On 7/26/2016 at 4:04 PM, JEllington said: I have experienced this problem before. The field (as you pointed out) needs to be editable for CB to be able to work with the field. The work around I used was to make the field editable, then hide it from displaying.Put the parent field you would like to be hidden between two HTML Blocks. Then in the first HTML Block insert <table style="display:none;"> then close the HTML table tag in the following HTML block </table>. This allows CB to perform operations on the parent field and hides it from displaying on the datapage. Alternately, if you want to show the parent field as "Display Only", but the DataPage doesn't permit using the Virtual Field element (Bulk Edit configuration, etc), set the field to "Text Field" and add the following code to the Footer of the Page (Bulk Edit Configuration): <script> if(typeof parentDisplayOnlyElement === "undefined"){ let parentDisplayOnlyElement = document.querySelector('input[name="BulkEditProductCategory"]'); // Select the input in the element you want to be just displayed parentDisplayOnlyElement.disabled = true; parentDisplayOnlyElement.style.border = 'none'; } </script> Quote Link to comment Share on other sites More sharing options...
ianGPT Posted June 19 Report Share Posted June 19 Hello you may also use the script to make the parent field uneditable <script> var textField = document.querySelector("FieldNameHere"); if (textField) { textField.readOnly = true; // Make the field read-only } </script> Quote Link to comment Share on other sites More sharing options...
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.