How may I be able to limit a webform component visibility by logged user role? In Drupal 7, this was possible with webform_component_roles module but there is no version for Drupal 8.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
When creating/editing a field, scroll down to ELEMENT ACCESS. There you can set all the limitations based on roles.
If you use YML you can use something like:
'#access_create_roles': - administrator '#access_update_roles': - authenticated '#access_view_roles': - authenticated
Finally, if you want to change the accessibility of the webform, check the Access tab (admin/structure/webform/manage/FORM_NAME/access).