Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I'm trying to use a select with the config below but when validating the type is requesting it is a string, is there another way to do this type of enum? we need both the name and code value on the formdata but only want the name shown in the select.

Any help would be appreciated as going in a bit of a loop with ideas!

if you want any additional information I will be happy supply it.

example:

 "supplierCode": {
      "title": "Select the name of the Utility Supplier",
      "type": "string",
      "ui:options": {
        "size": 8
      },
      "oneOf": [
        {
          "title": "Supplier 1",
          "enum": [{"name": "Supplier ", "code": "11111111111"}]
        },
        {
          "title": "Supplier 2",
          "enum": [{"name": "Supplier 2", "code": "911931111198"}]
        }]
}
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.