So i’ve been digging through posts regarding the Responsive Profiles. I keep seeing references to ClientProfiles.json.
After I have defined a default and Phone profile on my form i still do not see this file get created. Is this something I have to do manually ?
When i run my form and use developer tools in Chrome to change the profile to an iPhone 6 – my form does nothing.
Hi Edmond,
The ClientProfiles.json file you’re referring to is used to override the already existing profile rules, thus you’ll have to manually add it.
Here’s an example for the content inside the file:
{ "profiles": [ { "name": "Phone", "maxWidth": 450 }, { "name": "Phone (Landscape)", "landscape": true, "maxWidth": 600 }, { "name": "Tablet", "maxWidth": 800 }, { "name": "Tablet (Landscape)", "landscape": true, "maxWidth": 1024 } ] }
To read the properties of the device use Application.Browser.
You can also check if the profile has changed when you work with the device emulator in Chrome’s developer tools with the ResponsiveProfileChanged event.
Best regards,
Alaa
Please login first to submit.