Expand my Community achievements bar.

Retaining Project Association (Program + Portfolio) on a Custom Form

Avatar

Level 2

Hello! 

I have a custom form for our intake queue that uses a typeahead box to capture both the portfolio and the program. In the pre-set settings on the project, the project association section has both of these boths and when you select a portfolio, it automatically shows you every program inside that portfolio. When I've tried to replicate this on the custom form, the association isn't retained, despite using the same Object.ID (Program). I am sure there is coding within the project association section to make this happen and I am also sure I can probably build this in as a filter in text mode on the custom form. Does anyone know how to find that code to get me started?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 1
If you want to filter results for a single, constant portfolio, you can use a Program typeahead field with a static filter by portfolio name or ID. For example, filtering by name:

portfolio:name=CPN-022 MedTech General
portfolio:name_Mod=eq

However, if you have multiple portfolios that change from intake to intake and need to dynamically filter programs based on the selected portfolio, you should use an External Lookup field. Below is an example URL that works for dynamic filtering, and I have attached a configuration screenshot for reference:

$HOST/attask/api/program/search?portfolio:name={DE:Portfolio Name Dropdown}&portfolio:name_Mod=eq&fields=name