Hi Swati,
Rendering of the Htm.RequiredClientResources is done in your "master" layout and that has nothing to do with hiding or showing something. Those are just to render to the header or footer required client resources (see documentation or look at the Episerver Alloy MVC demo site).
It is unclear to what "Old post" you are referring to. Is your intention to hide something in edit mode based on another propertys value? If yes, then see this blog post by Grzegorz which is about hiding or showing tabs and properties in edit mode.
If this is something else, then please explain what you are trying to achieve and what old blog post you are referring to.
Hi Antti,
I saw below post with similar issue i suppose:
https://world.episerver.com/forum/developer-forum/episerver-forms/thread-container/2020/3/show-and-hide-dependencies-on-form-fields-not-working/
So im using Episerver form in which i have 2 form elements:
So im using the field dependency in the Textbox form element , that it should only be visible when the value of Dropdown is Nurse.
But i dont see the textbox control showing up when user selects the Nurse value.
Hi Swati,
Tested with Alloy and using Episerver Forms version 4.29.3 and the text box only shown when selecting Nurse from dropdown.
So what version of Episerver Forms are you using?
Have you published your form elements? Do you have more than one Selection element in the form? If yes, check that you have dependecy set to the correct Selection element.
I used the following dependency settings in the textbox related to the 'Selection' element
Hi,
So i have a selection dropdown and a textbox which should hide or show based on the selection dropdown value.
But on dropdown value change the textbox does not show/hide.
As read through old post, i have both below lines in my layout.cshtml
@Html.Raw(Html.RequiredClientResources(RenderingTags.Header)
@Html.Raw(Html.RequiredClientResources(RenderingTags.Footer)
Can anyone guide me how to fix this...