Skip to main content

Hello!

Does anyone know if it is possible to conditionally display components (or a different card state) on a flex card based on the users current viewport/form factor? I haven't seen any documentation about it but knowing the flex cards can be responsive leads me to believe it may be possible.

 

I'm aware you can create 'responsive' components using flex cards and the sliders in the UI for the break points. I'm more wondering if a user is in say, desktop view display one component, and if they are in mobile view display a different component.

 

Thanks for any information!

 

#Omnistudio #Vlocity #Public Sector #Flexcard

1 réponse
  1. 11 déc. 2024, 21:10

    Just  following up on my own post if anyone else comes across this with the same question...it is possible using custom CSS and media queries then applying that custom class to the element you want it to apply to.

    Here is an example flex card if anyone wants to look deeper.

0/9000