How to achieve a text field which is only required when a checkbox is checked?

Hi @codefactor,

  1. The “*” is not showing up next to a field that is sometimes required and sometimes not required depending on the “anyOf” conditionality of the required field

Sadly, this is expected. For JSON Forms to support conditional “required” we would need to fully validate the data according to the JSON Schema ourselves, only then would we know when the "required’ annotation is applied to the corresponding property. The only way I ever see this feature being implemented is if that kind of functionality were exposed in AJV.

  1. I’m trying to show/hide different versions of the same required/optional field based on a rule, but it seems the rules are not executed right away

Rules are always executed right away, however their behavior is unintuitive when the scope is pointing to an undefined property. I would like to recommend raising the scope of your rule to the parent level and then specifying required for your property according to your use cases. See here for a discussion with a similar topic.