What is the best way to hide a field visually? - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: What is the best way to hide a field visually? (/showthread.php?tid=2420) |
What is the best way to hide a field visually? - Guido1982 - 09-06-2022 I want to hide some fields, purely visually. So I want users to have the same rights on those fields, I want workflows and other code to be able to have the same rights on the fields as they have now: I only want to have the fields hidden from the regular detailview. Now I can set their 'presence' column to 1, but that doesn't feel like the way to go. I don't want to disable them in the profile, since that might disable access to the fields for that profile, while it can be needed for some background processes. So: purely visually. What is the best way to do that. RE: What is the best way to hide a field visually? - joebordes - 09-06-2022 Field Dependency business map seems to be the right thing to use Try that and let me know RE: What is the best way to hide a field visually? - Guido1982 - 09-07-2022 OK, I've done some tests, but without success: Code: <map> RE: What is the best way to hide a field visually? - joebordes - 09-07-2022 it just worked for me with no conditions. Maybe you have to update your code? RE: What is the best way to hide a field visually? - Guido1982 - 09-08-2022 Could be, but I just tried it in the demo, did not work either. The 'Gross Total' field in SalesOrders is still there. Check the attachment to see what I did. EDIT It works, you need to completely remove the 'condition'. It doesn't work in my installation, which is a bit older. I have the Field Dependency map, but apparently there have been updates to that. RE: What is the best way to hide a field visually? - joebordes - 09-08-2022 I don't see it in the detail view: [attachment=1183] RE: What is the best way to hide a field visually? - Guido1982 - 09-08-2022 (09-08-2022, 09:18 AM)joebordes Wrote: I don't see it in the detail view: Yeah I edited my question later: removing the condition all together works. In the demo, not in my installation. RE: What is the best way to hide a field visually? - Guido1982 - 09-26-2022 OK, so: this works. But it could use some improvement in my opinion. This just adds a 'visibility: hidden' CSS property to the field, leaving the detailview looking like a child's mouth when changing teeth when you hide a couple of fields. Maybe we can render the hidden fields in a hidden block and move them away from their regular slots. That way, all the JS stuff that needs to access it can still do so, but we'd be left with a decent looking interface. RE: What is the best way to hide a field visually? - joebordes - 09-27-2022 The solution to this is to implement LDS GRID instead of tables in DetailView RE: What is the best way to hide a field visually? - Guido1982 - 09-28-2022 Yes, that would be the ultimate solution for sure |