Hello Bill and my apologies for the late reply, but I do not work on Wednesdays and Thursdays as you may check on my profile page https://toolset.com/forums/users/jamal-b/
Sorry for the confusion, but you won't need this part of shortcodes:
[wpv-for-each field="wpcf-pimages"]
[media-field output='caption'][types field='pimages' output='raw'][/types][/media-field]
[/wpv-for-each]
It is the one responsible for the output:
[media-field output='caption'][types index="0" field='pimages' output='raw'][/types][/media-field]
[media-field output='caption'][types index="1" field='pimages' output='raw'][/types][/media-field]
[media-field output='caption'][types index="2" field='pimages' output='raw'][/types][/media-field]
While the types shortcode is aware if it is being wrapped inside wpv-for-each, the media-field shortcode is not.
I should have removed it during my testing.
That's why I built the repeating-media-field shortcode for you. It will loop through the repeating fields, and execute the media-field shortcode with the correct image URL.
This should be enough for you:
<div class="imgcap">
[repeating-media-field field="wpcf-pimages"]
</div>
Regarding the Gallery block, I think that you are previewing the design with a post that does not have images on it. Use the Post Preview dropdown to select a post that has values to preview with. Check this screenshot, Toolset properly gets the "Book Images" field for my post "History 101" hidden link
However, for support rules, we are able to handle only one issue at a time. This helps us to bring you a better service and also helps other users to find all the information here exposed. If you need help with the gallery block, please open a new ticket and you can assign it directly to me or ask for me on it.
I hope this helps. Let me know if you have any questions.