Because there is a global default, when editing variables in a specific realm, required fields should not be enforced. If a field is left blank, it will fall back to the global default. It would also be nice to show the user what that value is, "If blank, value will be ____".

Comments

bradyemerson’s picture

I've created a patch that does the following:

  • When editing in a realm form, required fields are not required.
  • A new line is added to the field description, "Leave blank to use global value: ..."
  • If a field is left blank, the realm value is deleted to revert it back to the global value

This works for what I'm trying to accomplish, but it does create issues if you need to set a realm variable to be blank. Perhaps to set to blank you pass "<none>" as the value, but this adds an additional level of complexity to the save and get functions.

Thanks for your comments!

bradyemerson’s picture

Status: Active » Closed (won't fix)

I'm closing this as the changes needed to support what we wanted ended up being much more extensive. Will need to determine the best path for integration or if it instead makes sense to fork this project.