You need to sign in to do that
Don't have an account?
Different VF pages based on SOQL query
I am trying to create a VF page that is used to batch add records. I have our "Special Event" record, on which there is a "Invite Members" button. This button should add an "Attendance" record for each of a subset of members. However, in the custom controller, I would like to verify that Attendance records have not been created yet. If some exist, I would like to have a VF page pop up that asks if the user is sure of the selected action. Otherwise, there should just be a validation page.
So how can I change which VF page shows up based on certain parameters in the custom controller?
Thanks
You can place this check in a method in your controller and set a boolean variable therein.
Based on this boolean, you can then do the conditional processing!
Cool_D