How to filter the options from a select list field according to a previous select list? I'm trying to build a content type that has two selectlist fields. My problem is that the first field should filter the second field options

For example:

First field options (This field must filter the next field options):

-Red (Selected)

-Blue

-Green

Second field options would be:

-Apple

-Strawberry

-Cherry
Take a look at Conditional Fields module to define dependencies between fields based on their states and values. Conditional Fields allows you to manage sets of dependencies between fields. When a field is “dependent”, it will only be available for editing and displayed if the state of the “dependee” field matches the right condition. When editing a node (or any other entity type that supports fields, like users, terms and files), the dependent fields are dynamically modified with the States API.