Running Feedhenry AppForms on Windows 8.1

In order to use Feedhenry AppForms on Windows 8.1 we need to build them locally. Not only that, but you’ll need to add a compat script in order to have support for dynamic content. I’ve created a script that shows all the steps

# Clone an existing Feedhenry forms app
git clone <Feedhenry forms app>

APP_NAME=forms
# Create a new cordova project using the HTML, CSS and JavaScript of the forms app
cordova create $APP_NAME --copy-from <Feedhenry forms app>/www
cd $APP_NAME
cordova platform add windows

# Install the jscompat to be able to have dynamic content
cd ..
git clone https://github.com/MSOpenTech/winstore-jscompat.git
cp winstore-jscompat/winstore-jscompat.js $APP_NAME/www

# Install the 'default' plugins
cd $APP_NAME
cordova plugin add org.apache.cordova.device 
cordova plugin add org.apache.cordova.network-information 
cordova plugin add org.apache.cordova.battery-status 
cordova plugin add org.apache.cordova.device-motion 
cordova plugin add org.apache.cordova.device-orientation 
cordova plugin add org.apache.cordova.geolocation 
cordova plugin add org.apache.cordova.file 
cordova plugin add org.apache.cordova.camera 
cordova plugin add org.apache.cordova.media 
cordova plugin add org.apache.cordova.media-capture 
cordova plugin add org.apache.cordova.file-transfer 
cordova plugin add org.apache.cordova.dialogs 
cordova plugin add org.apache.cordova.vibration 
cordova plugin add org.apache.cordova.contacts 
cordova plugin add org.apache.cordova.globalization 
cordova plugin add com.feedhenry.plugins.splashscreen 
cordova plugin add org.apache.cordova.inappbrowser 
cordova plugin add org.apache.cordova.console

vim www/index.html
# add <script src="winstore-jscompat.js"></script> into the head of the document

And a video that shows the result:

Feed Henry windows forms from Erik Jan on Vimeo.

UPDATE:
Just checked and verified that the workaround is no longer needed for Windows 10

*****
Written by Erik Jan de Wit on 09 July 2015