function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Dynamically display pageblock section on VFP

Hello there, 

Here is my request :
I have a VFP that looks like below image. 
Actual PageI would like to add a button (easy part), that will allow the current user to add a new equipment line that he owns (corresponding to a new apex:pageblock or apex:pageblocksection), directly on this page ? 
The tricky poing is that each block item will create a new object if all fields are completed upon saving.

Can someone help me achieve this? 
I haven't been able to find anything on that topic :(. 

In advance, Ty very much for your time and anwsers.
ANUTEJANUTEJ (Salesforce Developers) 
Hi Amber,

Have you tried checking if conditional rendering of vfpage works?, you could use the below link for reference:


I hope this helps.