New answers tagged ajax
0
votes
Accepted
Context.PageMode is not working in Experience editor
I was able to resolve this issue by checking for sc_mode=edit in UrlReferrer
0
votes
Context.PageMode is not working in Experience editor
Try to use this code in the view and pass parameter value to Ajax call.
@{
var value = Sitecore.Context.PageMode.IsExperienceEditor;
}
and you can use this value in hidden field.
Top 50 recent answers are included
Related Tags
ajax × 18mvc × 5
sitecore-api × 4
javascript × 3
mvc-forms × 2
sitecore-client × 1
sitecore-commerce × 1
experience-editor × 1
wffm × 1
presentation × 1
webapi × 1
redirect × 1
components × 1
webforms × 1