Empty one field if anither is populated

It feels like this should be much simpler than I am finding it but basically I have 2 fields that are used to filter the content of a repeating group. When one field is populated I want the other to be empty so I am only filtering on one field at a time.

I currently have this:-

This isn’t working and I assume it is because I am setting the initial content - I can’t see any other way of doing this though - any ideas?

Thanks

D

Probably something like:

  • wrap inputs in separate groups
  • set the input’s value to parent’s group’s value (probably type text?)

In a workflow set:

  • When this inputA changes – and if the value is not empty,
  • reset groupB’s value (which should reset inputB’s value)

Thankyou - a variation of this worked for my circumstances.

Regards

D