Announcements
We are using the Business Process bar on a custom entitity.
In the main, the fields are locked down and populated by an overnight job. One or two of the date fields will sometimes be empty.
Since they are locked it is a bit rubbish to have the "click to enter" text within the field cell since nothing happens when you click it.
We would rather have blank space.
Any solutions?
*This post is locked for comments
In the end I created an HTML Web Resource with the necessary JavaScript to update the fields.
This seems to be the only way since the web resource will load last. My JavaScript isn't brilliant. Has real trouble drilling down to the span and in the end had to replace the entire div as my time was limited. Would rather have just replaced the text in the span.
Interestingly when I test the span value it contains a hyphen.
Solution works: although prone to breakage when Microsoft updates the UI. Customer was happy with the solution.
- <html>
- <head>
- <script>
- var finalreportdate = window.parent.document.getElementById("field1").firstElementChild.firstElementChild;
- var postimplementationset = window.parent.document.getElementById("field2").firstElementChild.firstElementChild;
- if (finalreportdate.innerText.length <= 1) {
- window.parent.document.getElementById("field1").innerHTML = "<div><span style='color:blue;font-style:italic;padding-left:24px;'>Unavailable</span><div>";
- }
- if (postimplementationset.innerText.length <= 1) {
- window.parent.document.getElementById("field2").innerHTML = "<div><span style='color:blue;font-style:italic;padding-left:24px;'>Unavailable</span><div>";
- }
- </script>
- <meta>
- <style type="text/css">
- P {
- margin: 0;
- }
- </style>
- </head>
- <body>
- </body>
- </html>
The answer to completely hide the field using the OTB functionality is the one I would also advise anyone finding this article to use: unless, like in my case, the customer is quite adamant.
Thank you for the answers.
Hi,
An alternate solution could be to hide the fields until they contain some value.
You could do this with javascript and have a simple check onload if the fields contain value or not.
You should also be able to show/hide the fields using a business rule.
Hope this can help you in any way.
There is no supported way to do this. You can probably do it with jquery or the dom, and modifying the control properties/attributes, but except for this, I don't think there is a way.
Hello Gordon,
I have seen another post having same concern but there is no supported customization to change this text.
You can put your concern here-
André Arnaud de Cal...
293,435
Super User 2025 Season 1
Martin Dráb
232,567
Most Valuable Professional
nmaenpaa
101,158
Moderator