Hello,
1) You can create a custom form control according to our
documentation which will populate the DealerID custom field on each custom document automatically with some custom code. You can use the UserID to identify the user/dealer.
2) That can be done with a custom sql query in a repeater. The query below displays all the Dealerships (the dealership table - this needs to be changed according to your setup) which belong to any user which is a featured dealer.
SELECT * FROM Dealerships WHERE UserID IN (SELECT * FROM CMS_USER WHERE IsFeaturedDealer = 'true')
To tweak this query please use MS SQL Server Management Studio.
Best regards,
Boris Pocatko