Can we create activity tab in RSV (Required site visit) doctype

I provided the reference of the activity tab and how it worked in code, now you have to add the activity tab and configure the logic.