Wasay Syed

Senior Programmer & Web Developer

Published

May 31, 2019

Author

U
Unknown

QlikSense - Custom Form Login Screen

Extension of:  Custom login, logout and error forms for Qlik Sense by RPK https://developer.qlik.com/garden/5ada5a8f0c313f5c539dc7fd QlikSense - Custom Login Screen Install Node on QlikSense...

Extension of: 
Custom login, logout and error forms for Qlik Sense by RPK
https://developer.qlik.com/garden/5ada5a8f0c313f5c539dc7fd


QlikSense - Custom Login Screen

Install Node on QlikSense Server:
Saved at: C:\server-tools\Downloads\Node
Installed at: C:\server-tools\Runtime\nodejs\
Keep default options

Create Folder:
C:\QlikForm

Clone git Repository and keep updates private:
# Open Shell/Bash/Command Prompt
cd /QlikForm


cd QS-Custom-Forms.git

git push --mirror https://github.com/<name>/QS-Custom-Forms.git
cd .. (go to parent folder)

# remove other users repo clone
rm -rf QS-Custom-Forms.git

# clone witinc private repo
git clone https://github.com/<name>/QS-Custom-Forms.git

Get latest copy of login pages:
# Open Shell/Bash/Command Prompt
cd /QlikForm/QS-Custom-Forms

# run node command
node extract_orig_forms

Rename Files:
error_automodified.html => error_<name>.html
login_automodified.html => login_<name>.html
logout_automodified.html => logout_<name>.html


Update HTML:
Open in Windows Explorer “C:\Qlik\QS-Custom-Forms” folder
Use text or html editor to update html pages
Quickest test is to add "Dev or Company Name" before Qlik logo under files previously renamed with *<name>.html

Note: CSS, JavaScript, and Images has to be part of html file and not referenced as external file. Convert images to base64 code.

Apply custom forms:
# Open Shell/Bash/Command Prompt
cd /QlikForm/QS-Custom-Forms
# install npm packages
npm install
# run node command
node custom_forms

Important: Use of custom forms under QMC - Virtual Proxies:
  • Open Start Menu
  • Go to Virtual proxies
  • Select Central Proxy (Default) (If you have different virtual proxy then select that)
  • Click Edit button
  • Under Authentication section
    • Update value of Windows authentication pattern from "Windows" to "Form"
  • Click Apply
  • Services will be restarted
  • Open Qlik Management Console link to test the logins

Restore original forms:
Open Shell/Bash/Command Prompt
cd /QlikForm/QS-Custom-Forms
# run node command
node restore_org