web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Customize the options ...
Copilot Studio
Answered

Customize the options display

(0) ShareShare
ReportReport
Posted on by 7

Can we change the display alignment of options from being displayed horizontally, can it be displayed vertically.  

Categories:
I have the same question (0)
  • Gitika Gupta Profile Picture
    on at

    Hello, You can do with a custom canvas implementation which requires code, but not out of the box yet. We are adding support for vertical alignment shortly and will post in the announcements when we release it. Thanks.

  • jdelga2 Profile Picture
    2 on at

    Can you please provide the code to get this vertical allignment?, I can't find it anywhere, not in the documentation, default style file, and not even in the forums.

     

    Thanks,

    Juan

  • murthyyvsn Profile Picture
    Microsoft Employee on at

    Any update on this topic?

  • webmonkee Profile Picture
    29 on at

    const styleOptions = {

    // Add styleOptions to customize Web Chat canvas
    suggestedActionLayout: 'stacked',
    };

    That should do it.

  • DiegoPeres Profile Picture
    327 on at

    Hi @ggupta 
    any news about the improvement to put the menus vertically?

  • Verified answer
    PowerPuffKK Profile Picture
    316 on at

    Hi @DiegoPeres,

     

    I've had to do this for my first PVA project some time ago as the carousel format of the options was raised as an accessibility issue. It took a while to work it out but I have done so successfully and have used it ever since - I thought it might be easier to paste the code snippet that you can reuse if you wish. You'll need to go to https://docs.microsoft.com/en-us/power-virtual-agents/customize-default-canvas for the full code and then in the const styleOptions section, paste the line I have bolded below. This will change the layout of the suggested actions from carousel to stacked. I'd also suggest using the second bolded line with the wrapped text (this will ensure that for long text options, the text will be wrapped within the button - this also took me ages to figure out!).

     

    Please mark my answer as a solution if it helped!

     

    const styleOptions = {
    // Add styleOptions to customize web chat canvas
    botAvatarInitials: 'BT',
    accent: '#003087',
    botAvatarBackgroundColor: "#FFFFFF",
    botAvatarImage: 'https://image.flaticon.com/icons/png/128/265/265668.png',
    userAvatarInitials: 'BT',
    accent: '#003087',
    userAvatarBackgroundColor: "#FFFFFF",
    userAvatarImage: 'https://image.flaticon.com/icons/png/128/4776/4776976.png',
    hideUploadButton: true,
    suggestedActionLayout: 'stacked',
    suggestedActionDisabledBorder: null,
    suggestedActionDisabledBorderColor: '#E6E6E6',
    suggestedActionDisabledBorderStyle: 'solid',
    suggestedActionDisabledBorderWidth: 2,
    suggestedActionsStackedLayoutButtonTextWrap: true,
    emojiSet: true,

    };

     

     

    Kind regards,

    Kristine

    PowerPuffKK

  • marvin_B Profile Picture
    2 on at

    Hi Everyone,

     

    Is there a way to customize the options inside Teams? From what I gather, the solutions in these forums refer to customizing the web app. 

  • PowerPuffKK Profile Picture
    316 on at

    Hi @marvin_B ,

     

    The Teams version of PVA renders slightly differently and doesn't support stacked options which can only be accommodated using code. I've tried extending the PVA for Teams using Bot Framework but even thumbnail/hero cards get rendered differently. At present I don't think it's possible.

     

    Kristine

  • lisha Profile Picture
    80 on at

    Hi @webmonkee ,

     

    How can we update the code in original virtual agent chatbot so that we can see the change in original chatbot? Please help me to resolve my issue.

     

    Thanks

  • Kumar_bi Profile Picture
    190 on at

    @ggupta any update on this sir ? can i have a vertical choices display with low code/no code ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard