Skip to content
Discussion options

You must be logged in to vote

Hello, you can have a look at the editor demo project.
The back-end is in Java and the front-end is plain JavaScript, HTML and CSS.
It demonstrates how to build forms (most of it), we demo the generation of type "id" and "id-ref".
"id-ref" is indeed some kind of select in the UI and "id" is often generated and hidden.
https://github.com/OP-TED/eforms-notice-editor/blob/develop/src/main/resources/static/js/custom/notice-type-definition.js

  case 'id': return new IdInputField(content, level);
  case 'id-ref': return new IdRefInputField(content, level);

And in notice-form.js we have the function: idFromFieldIdAndInstanceNumber

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rouschr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
fields Related to field metadata (/fields/fields.json) notice-types Related to the notice type definitions (/notice-types).
3 participants