Hi,
I add a customized label in Order header , i want to make it invisible when custom field 'Remise Comm' greater than 0
Best answer by Shawn Burt
View originalHi,
I add a customized label in Order header , i want to make it invisible when custom field 'Remise Comm' greater than 0
Best answer by Shawn Burt
View originalNot sure you can do that. But you could make an unbound dac field with a constant value, suppress it's label, and the show/hide it.
Hi
You can have a Javascript event associated to ‘Remise Comm’ when the value changes
function setLabelHidden(control, eventArgs) { var element = document.getElementById("ctl00_phF_form_LABEL"); if(eventArgs.value > 0) { element.style.visibility = "hidden"; } else { element.style.visibility = ""; }}
Assuming that the ID of the label is LABEL
The event can be defined in the screen editor:
There you go. For my example I used a numeric field. You can adapt that to your specific need.
A very useful old Source for this example:
https://asiablog.acumatica.com/2016/12/client-events-using-javascript.html
Hope this helps too
Hi
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.