Skip to main content
Nintex Community Menu Bar

Mobile styling showing after opened on Desktop

  • February 16, 2021
  • 0 replies
  • 11 views
  • Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 682 replies
 

Mobile styling showing after opened on Desktop

KBS100271

PRODUCT
K2 Five
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

When a form is opened on a mobile device (not in the K2 Workspace or K2 Mobile apps), the mobile styling can become cached.  Opening the same form on a desktop device will then continue to show the styling as if still on a mobile device. 

Symptoms

This can be confirmed in both appearance as well as in the browser console by hitting 'F12.'  An IIS reset will temporarily resolve the issue, but will continue to occur after the forms are opened on a mobile device again.

Resolution

In both the SmartForms Runtime and SmartForms Designer web.config files, you will notice the following line:  

<add name="RT profile" duration="3600" varyByParam="_ID;_NAME;_MODE;_STATE;_THEME;_OVERFLOWY;__CALLBACKID;_DEBUG;_RENDERWORKFLOWSTRIP;_DRAFTID;_NAVIGATEDSERVEREVENTS" varyByHeader="Accept-Encoding" varyByCustom="userversion;userculture;jq-legacy" enabled="true" location="Server" />

The above line of code is found in the <caching> node.  In this node, edit "varyByCustom="userversion;userculture;jq-legacy" to read as "varyByCustom="userversion;userculture;jq-legacy;browser" by appending ';browser' at the end.  

Afterward, save the .config files and reset IIS.  This should prevent the caching from occurring in the future.

 

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings