I'm wondering what is the easiest way to create a dependency between two fields a & b in drupal 8 with the content of field b dependent of the choice of the field a. The two fields are entity references and the two entities A & B are referencing a same third entity C on which I count to filter the result of field b.
Currently I play with Drupal 8 Beta and try to accomplish something I have not yet figured out. Hope you can help me.
I have an use case with Users that can fill in a numeric value in a field that is part of a node type A. Lets say field A. Also, users are split in two roles, A and B for arguments sake. Now I want to have a view page that will show all the Users that have have the same numeric value in field A as the User logged in but in their case that field is part of another node.
I searched this topic and found reference to adding JS to posts but it does not apply to Drupal 8. I also tried to install a couple of iFrame modules as an alternative but could not install them. So I am wondering if modules need a .yml file before they can be installed to Drupal 8?
What I need to do is add 2 JavaScript includes to my pages that load a special button. But how to add JS to a page without the HTML being ignored?