How to add fields dependent on each other on the form.

How to add fields dependent on each other on the form.

Example:
If you select a value in field1, then field2 offers some values, if you select a different value in field1, then in field2 there will be other values.
Help me please (HPSM 9.41)