NET Developer 10 Exam QuestionsBrowse all questions from this exam

NET Developer 10 Exam - Question 35


With Sitecore MVC, how do you ensure a field cannot be edited when you use the field helper to render content?

Show Answer
Correct Answer: BD

To ensure a field cannot be edited when using the field helper to render content in Sitecore MVC, you should use the DisableWebEdit option. This option effectively disables editing capabilities on the rendered field.

Discussion

3 comments
Sign in to comment
AlexEthisysOption: B
Apr 3, 2023

Pretty sure the answer is B

uma_foxOption: C
Jul 20, 2023

@Html.Sitecore().Field("FieldName", Model, new { editable = false })

PRAVF9CYOption: B
Feb 15, 2024

For Field Helper : Field Helper : Ans B @Html.Sitecore().Field("Field Name", new { DisableWebEdit = true }) For : Tag helpers : Ans C <div asp-for="@Model.Description" convert-new-lines="false"></div> Hence Answer is B