Hi
So for the first point, you can create a custom dropdown form component that loads in values from an enum maybe using a custom General Selector form component, or just a bespoke drop down component.
You'd configure it so you can specify an enum, and then use Enum.GetNames()
or Enum.GetValues()
to bind the names/values to the dropdown list of items.
For the second point, if you want to have localised values in the datasource, you can use a macro syntax like this:
"normal;{$kentico.formbuilder.component.recaptcha.properties.layout.normal$}\r\ncompact;{$kentico.formbuilder.component.recaptcha.properties.layout.compact$}"
This is an example of one that Kentico uses for the Recaptcha form component.