Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

how to display a weblink based on a condition

(0) ShareShare
ReportReport
Posted on by 265

hi,

I have created a  form for some purpose (according to my requirement). my need is to display Weblink set A, after submitting the form. When user is signing to the power pages portal, they will direct to  form A. If someone filled it successfully, I need to display weblink set A. until it is succeed, can't visible..

please help guys..

Thanks

Categories:
  • Verified answer
    Erandi Profile Picture
    265 on at
    Re: how to display a weblink based on a condition

    @jyotiatharv thank  you very much for your guidance💛..i will go through it 

  • Verified answer
    jyotiatharv Profile Picture
    63 on at
    Re: how to display a weblink based on a condition

    @Erandi In the following sample code, I have 2 weblinks. If the user(i.e. Contact) has account (i.e. Company name field) then I am showing "primary navigation" weblink else "partner navigation" weblink

    jyotiatharv_0-1706857999805.png

    {% if user and user.parentcustomerid %}
    {% assign primary_nav = weblinks["Primary Navigation"] %}
    {% else %}
    {% assign primary_nav = weblinks["Partner Navigation"] %}
    {% endif %}
  • Erandi Profile Picture
    265 on at
    Re: how to display a weblink based on a condition

    hi @jyotiatharv thanks for your idea. my main issue is handling the codes .if possible ,can you share example for handling with liquid code in header section.

  • jyotiatharv Profile Picture
    63 on at
    Re: how to display a weblink based on a condition

    @Erandi in the header webtemplate you can make the changes for weblink by writing liquid 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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >