Select options from file based on other selected

Hi! Iā€™m trying to make the following

  1. I have a structure field
  2. Inside the structure a select with a query of page files.
  3. Another select where its options are dynamic and fetched from the file ā€œmetadataā€ selected in the first select box.

Is this possible?

Thanks in advance!

No, not out of the box, since the second field wonā€™t know anything of what you selected in the first field.

Thanks. So something like that can be achieved via custom plugin? Can you say something about the complexity of this case? I tempted to try to create a plugin but I donā€˜t know if this case is too complex for me.

Thanks!

It doesnā€™t seem to be that easy or seemingly only in a hacking way, this is similar: Programmatically change the content of the file field