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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Pages
Unanswered

Filter Lookup

(0) ShareShare
ReportReport
Posted on by

Hi

I am new to portals.   I have a multi-step form. I have a requirement where I have to show only two values on the lookup when certain conditions are true.

I have put the logic to calculate conditions in a JSON Web template and that is working fine. I have added script on the step.

How do I show only those two records in the lookup now?

 

Categories:
I have the same question (0)
  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @Amaira ,

    when there are not many choices in the lookup, i would recommend to render the lookup as a drop-down list (this can be set in the metadata of the form). This creates a better user-experience and TaDa - you can set some of the lookupvalues in the options of the rendered choice to display none or delete the from the DOM. So, the user will not see them anymore 🙂

    Hopefully this points in the right direction,

      Christian

     

    PS another (more clumsy way) is to enable the selection of views in the lookupcontrol and switch the view based on you javascript. This is not well documented and requires some strange dom modifications 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 53

#1
rezarizvii Profile Picture

rezarizvii 53

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 24 Most Valuable Professional

Last 30 days Overall leaderboard