I have a rule that fires off when a print button is clicked. I want to be able to use this rule to change the form's theme to something that shows up better when printed. I added a "Set the Form's properties" action, but in the configuration, the theme property is greyed out and unable to be altered:
Is this always the case, or is there a way to change a theme in a rule?
Best answer by RaymondJVR
Good day KDettman
The theme property being disabled by default when using the set form properies is as per design however and nice workaround would be to call your form with the desired theme via the URL, for example: Lets say you have form1 which consists of URLhttps://server.com/Runtime/Runtime/Form/Form1/you can simply call this form using a navigate to URL rule and modify the URL by adding the below into the URL which would change your URL to look like this: https://server.com/Runtime/Runtime/Form/Form1/?_theme=Platinum
Should you find the information from the article useful or leading you to the answer please mark as "Solution and/or Kudo", as it will assist other k2 developers with relevant information in the near future.
Best Regards
Elvis
[K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member]
The theme property being disabled by default when using the set form properies is as per design however and nice workaround would be to call your form with the desired theme via the URL, for example: Lets say you have form1 which consists of URLhttps://server.com/Runtime/Runtime/Form/Form1/you can simply call this form using a navigate to URL rule and modify the URL by adding the below into the URL which would change your URL to look like this: https://server.com/Runtime/Runtime/Form/Form1/?_theme=Platinum
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.