Hello,
How Can Make A field hidden by default on entity form, when load the page on Portal. I want this field to be visible after an event Occurs.
My field is hidden due to this javascript code:
Hello,
How Can Make A field hidden by default on entity form, when load the page on Portal. I want this field to be visible after an event Occurs.
My field is hidden due to this javascript code:
Hello Don,
No, You will not need access to the Entity form's HTML.
Have you tried to achieve this using CSS only :
#field tr:nth-child(rownumber) {display:none}
Alternatively, you can achieve it by adding the class dynamically:
1. Define a class in CSS
.hideDiv
{
display: none
}
2. Now, add this class to your element dynamically:
$( document ).ready(function() {
$("#field").closest("tr").addClass("hideDiv")
});
Hello,
Yah, it's interesting but if only I got access to the entity Form HTML. they propose to add a class to the element. I don't think it is possible int the portal, isn't it?
div.hidden
{
display: none
}
<div id="extraControls" class="hidden">
</div>
$(document).ready(function() {
$("div#extraControls").removeClass("hidden");
});
Hello Don,
You can refer to this link for solution: stackoverflow.com/.../how-do-i-hide-an-html-element-before-the-page-loads-using-jquery
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156