How to create duplicate fields in Form Builder with Orbeon Forms 3.9?

Alex, I don’t think I’ve explained well enough (although the information you provided was useful.) Suppose I have an expression about employment that was created to collect information about previous employers. Assume that the grid for one employer was 15 fields. If I were going to allow the user to enter up to 10 past employers, I would have to manually create 150 separate fields ... then ... to complicate the situation, if I used validation rules for my form, I would have to change the properties of each control at a time. So my question is twofold: firstly, is there a way to quickly replicate whole meshes in the form builder? Secondly, is there a way to change the visibility rules for the entire grid, rather than right-clicking on each control each time to add visibility rules (or change the control names in this case.)

+4
source share
1 answer

Orbeon is working on adding Form Builder support for creating a user interface for which XForms is called "repeats." With the repeat support built into Form Builder, you can create only one “line”, that is, fields for one brother, and say that this line can be repeated. But since this is not yet available, you can work around this by editing the source generated by Form Builder to use repetitions. Let me expand on this idea:

Form Runner, a runtime environment, already supports reruns. It is just that Form Builder does not allow you to edit them. You can reuse it by editing the code generated by Form Builder from the Advanced / Edit Source. You can see what the repetition looks like in the example bookshelf and see how the code looks in the source of the example bookshelf (find <fr:repeat> in <fr:grid> ).

In your case, since you want to limit the number of possible siblings to 14, also add the attribute maxOccurs="14" to <fr:repeat> .

+1
source

Source: https://habr.com/ru/post/1383978/


All Articles