{"action":"created","issue":{"url":"https://api.github.com/repos/opnsense/plugins/issues/883","repository_url":"https://api.github.com/repos/opnsense/plugins","labels_url":"https://api.github.com/repos/opnsense/plugins/issues/883/labels{/name}","comments_url":"https://api.github.com/repos/opnsense/plugins/issues/883/comments","events_url":"https://api.github.com/repos/opnsense/plugins/issues/883/events","html_url":"https://github.com/opnsense/plugins/issues/883","id":365265507,"node_id":"MDU6SXNzdWUzNjUyNjU1MDc=","number":883,"title":"[question] Add item to dropdown dynamically","user":{"login":"reza-ebrahimi","id":11276982,"node_id":"MDQ6VXNlcjExMjc2OTgy","avatar_url":"https://avatars2.githubusercontent.com/u/11276982?v=4","gravatar_id":"","url":"https://api.github.com/users/reza-ebrahimi","html_url":"https://github.com/reza-ebrahimi","followers_url":"https://api.github.com/users/reza-ebrahimi/followers","following_url":"https://api.github.com/users/reza-ebrahimi/following{/other_user}","gists_url":"https://api.github.com/users/reza-ebrahimi/gists{/gist_id}","starred_url":"https://api.github.com/users/reza-ebrahimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reza-ebrahimi/subscriptions","organizations_url":"https://api.github.com/users/reza-ebrahimi/orgs","repos_url":"https://api.github.com/users/reza-ebrahimi/repos","events_url":"https://api.github.com/users/reza-ebrahimi/events{/privacy}","received_events_url":"https://api.github.com/users/reza-ebrahimi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-30T21:55:29Z","updated_at":"2018-10-01T07:16:05Z","closed_at":null,"author_association":"NONE","body":"I need to add items to a dropdown element defined in Forms, I have tried it with JQuery append method inside script tag (.volt files) but it won't work, is there any way to do this?\r\n\r\n```\r\n<field>\r\n      <id>general.test</id>\r\n      <label>Test Dropdown</label>\r\n      <type>dropdown</type>\r\n</field>\r\n```"},"comment":{"url":"https://api.github.com/repos/opnsense/plugins/issues/comments/425810611","html_url":"https://github.com/opnsense/plugins/issues/883#issuecomment-425810611","issue_url":"https://api.github.com/repos/opnsense/plugins/issues/883","id":425810611,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTgxMDYxMQ==","user":{"login":"mimugmail","id":20438689,"node_id":"MDQ6VXNlcjIwNDM4Njg5","avatar_url":"https://avatars3.githubusercontent.com/u/20438689?v=4","gravatar_id":"","url":"https://api.github.com/users/mimugmail","html_url":"https://github.com/mimugmail","followers_url":"https://api.github.com/users/mimugmail/followers","following_url":"https://api.github.com/users/mimugmail/following{/other_user}","gists_url":"https://api.github.com/users/mimugmail/gists{/gist_id}","starred_url":"https://api.github.com/users/mimugmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimugmail/subscriptions","organizations_url":"https://api.github.com/users/mimugmail/orgs","repos_url":"https://api.github.com/users/mimugmail/repos","events_url":"https://api.github.com/users/mimugmail/events{/privacy}","received_events_url":"https://api.github.com/users/mimugmail/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T07:16:05Z","updated_at":"2018-10-01T07:16:05Z","author_association":"MEMBER","body":"I'm note a core dev, for me it seems you have to choose the correct FieldType in Model. Which objects do you need to be dynamically loaded? Interfaces? Otherwise you have to add dialog tab and let the use add them (like Prefix-Lists in FRR->BGP)"}}
{"actor":{"display_login":"mimugmail"}}