You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
To facilitate the filling of the regions field, I would like to include a list of ISO 3166 country codes (specifically the 2 letters form). What would be nice, would be to be able to search for either the country name or the 2 letters code, and then it would fill the code.
However, it seems that with the sane_default attribute, the same text is displayed in the drop-down and then filled. Is it somehow possible to do something like an HTML select tag, with a different option value and displayed value? For instance:
<option value="lu">Luxembourg (lu)</option>
If it's not a good idea, let me know as well :)
The text was updated successfully, but these errors were encountered:
Thanks for the feedback. It's a change in the misp-object template format as we would need a double list. @iglocska@mokaddem what do you think of this?
I think a potential solution (a double list would be really tricky) is to have a helper widget for specific types. We could create a new country code type and hook the value field in the object add/edit templates.
Hello,
To facilitate the filling of the
regions
field, I would like to include a list of ISO 3166 country codes (specifically the 2 letters form). What would be nice, would be to be able to search for either the country name or the 2 letters code, and then it would fill the code.However, it seems that with the
sane_default
attribute, the same text is displayed in the drop-down and then filled. Is it somehow possible to do something like an HTML select tag, with a different option value and displayed value? For instance:<option value="lu">Luxembourg (lu)</option>
If it's not a good idea, let me know as well :)
The text was updated successfully, but these errors were encountered: