record view in site

Certified Associate Developer

I have two different screen where one screen has summary and other screen has details of each task. now both screens has same view and details screen should check wether the task is primary or not if the task is primary then it should display the name associated with that task. If the task is secondary the it should display the names associated with that record. how to do it

  Discussion posts and replies are publicly visible