0

I have setup the SharePoint site to open in an iframe within a CRM portal.

When I try to upload a document and fill out the metadata, it gives an error that

'Field can't be blank' even though I have filled it out. 

It only happens in iframe-IE11. It works fine in IE10/chrome/Mozilla. It works fine if I open the SharePoint site directly in IE11 browser (outside iFrame).

How do I fix it in iframe-IE11?

2
  • Is IE11 running in Compatibility View mode? This is required for SharePoint 2010/2013.
    – user6024
    Aug 3, 2016 at 16:41
  • I tried compatibility mode, trusted sites as well but no luck!
    – Adi S
    Aug 3, 2016 at 16:42

1 Answer 1

0

The below code worked for me:

if (typeof browseris !== 'undefined') {
    browseris.ie = false;
}

The problem is in SharePoint 2013’s init.js file. The script calls attachEvent if it detects the browser to be IE.

I used the above code to override the property so browseris.ie never evaluates to true and attachEvent is never called. Find the original post here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.