- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2014 10:56 PM
Hi,
We want to create a printing service, with options about paper size, the color of the front page, etc... To give this an easy look and feel we want to let the customer select an option with an image instead of text. For example we don't want a bullet with the word "landscape" but we want to show an image of an landscape page.
Thanx for your help!
Solved! Go to Solution.
- 6,230 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2014 01:24 AM
You can write a UI macro that will render whatever you like and then add it to your catalog item as a variable of "Macro" or "Macro with Label".
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018 08:57 AM
Hi Slava,
I want to do the same thing, but how do I set up the UI Macro.
This will be my first time doing this. Can you help with a little more detail?
Thanks,
Karen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 02:22 AM
I still needed to share the code for the Client Script.
function onLoad() {
//Use images instead of checkboxes
//Hide the checkboxes
g_form.setDisplay('portrait', false);
g_form.setDisplay('landscape', false);
//set fields form image
document.getElementById('portrait').onclick = function() {
g_form.setValue('portrait', true);
}
document.getElementById('landscape').onclick = function() {
g_form.setValue('landscape', true);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2015 10:32 AM
where I should save the images ( portrait , landscap) in service now ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2015 12:44 AM
I added them via System UI > Images.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2018 08:40 AM
Hey, Please share the jelly script for this UI Macro.