- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 03:08 AM
Hello @Ankur Bawiskar
I am submitting a request from my employee center portal and i notice the Order Now button at right side of my catalog form. When I scroll the page down below to fill my catalog form my Order Now button widget(SC Catalog item-widget name) also been scrolled down till my catalog form page . I want to understand how that widget is scrolling down when i scroll down in my page.
In below image you can see position of order now button widget at top before scrolling down
Now after scrolling down the page my widget is also scrolling down along form
Can you please guide me on this how this widget scrolling action is taking place. I am checking on css and html code of widget but couldn't get it. Can you please share your inputs on it. Thanks in advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 12:25 AM
It's handled by CSS:
<div ng-class="{true:'sc-fixed', false:'' }[isSCCartFixed]">
.sc-fixed {
position: fixed;
max-height: 100%;
width: 17.67777%;
z-index: 1;
}
An element with position: fixed; is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled. The top, right, bottom, and left properties are used to position the element.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 12:36 AM - edited 01-11-2024 12:39 AM
The behavior you're describing, where the "Order Now" button scrolls along with the page, is typically achieved using a CSS property called 'position: fixed;' or 'position: sticky;'. These properties allow an element to be positioned in a specific way relative to the viewport, which means it can stay in the same place on the screen even when the page is scrolled.
Here's a brief explanation of both:
position : fixed;
- This CSS property is used to position an element relative to the browser window. It will not move when the page is scrolled, which means it will always stay in the same place on the screen.
- Example CSS:
.fixed-button {
position: fixed;
top: 100px; /* Distance from the top of the viewport */
right: 20px; /* Distance from the right of the viewport */
}
position: sticky;
- This property is a hybrid of relative and fixed positioning. The element is treated as position: relative until the page is scrolled to a certain point, at which it becomes fixed.
- Example CSS:
.sticky-button {
position: -webkit-sticky; /* For Safari */
position: sticky;
top: 100px; /* Trigger point for sticky behavior */
right: 20px;
}
Note that 'position: sticky;' will only work if the element's parent does not have an overflow value other than visible.
I tried to inspect the Order Now button widget by using the browser's developer tools by following the steps below
- Right-click on the "Order Now" button in your browser and select "Inspect" or "Inspect Element" from the context menu.
- Looked for the styles applied to the element in the Styles pane of the developer tools.
In CSS rules, I found that position: fixed is applied on the right side cart widget. Please refer the screenshot below
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 09:44 PM
Hi Iraj,
Thanks Iraj, yeah I too saw it could find only for string fields. Is there any OOB examples or documentation available for using synchronized text field. I have a requirement to populate knowledge article based on category field(select box) field in my record producer. Currently using client scripts I am copying my choice field values to string field and populating knowledge articles and I am looking for an alternate option to directly populate articles based on choice field. Is there any examples of synchronized text fields or documentation. Thanks in advance.