How to get slot values for a particular form in custom actions

Can anyone help me in extracting those slots only that belongs to a particular form only through a custom action

@Emma