SmartForm hosted in Iframe inside SharePoint


Badge +1

Hello Guys,

For various reasons i have hosted my SmartForm inside a Iframe inside a SharePoint form. I know that i can use the SmartForm ViewPage Webpart, but this does not furfull my requirement.

The iframe works, and is hosting and functioning 100% correctly. 

My question is that upon first sign in i get prompted to sign in to the K2 Smartform. How can i make this read the value from the sharepoint logged in user?

Additionally if i log out and sign in with a different user, then the smartform (iframe) still has the security context of the previous user and not the currently logged in user.

Any help would be appreciated.

Regards,

Bradley


10678iBA7C052BE118C17E.png
16509i04EF2C45F0D19FFA.png

2 replies

Badge +5

Hi Bradley,

 

In my lab I have the following sites in my Local Intranet zone and have confirmed that I don't get prompted when using the K2 Forms Viewer App Part (SmartForms in an iFrame):

 

https://portal.denallix.com <== My SharePoint site

https://k2forms.denallix.com <== My K2 forms site

https://k2.denallix.com <== My K2 workspace site

https://*.denallix.com <== My app domain (I believe this is only needed if you used the K2 Forms Viewer App Part)

*.denallix.local <== The wildcard DNS entry I have for my SharePoint app domain is a CName that points to the internal DNS name of my SharePoint web front end so I have found this is also required but it may not be in your case

 

You could also use the Trusted Sites zone in Internet Explorer but you will have to perform further tweaks by clicking on the Custom Level button for it as you may need to change additional settings there such as "Automatic Login with Current Username and Password".

 

Also, if you are browsing to the site from a workstation that is not on the domain you may have to click on the "Remember my credentials" checkbox when signing in the first time.  This will add your credentials for that site to the Credential Manager on the workstation and you shouldn't get prompted any more.

 

In regards to the logging out and signing back in with a different user, I don't know of a way around that other than completely closing the browser or using an InPrivate browser session.

 

Please let me know if this helps.

Badge +1

Thanks Jimmy. 

That worked perfectly!

Reply