I am looking for a way for the language to express the HTML application workflow itself . If the user fills in certain values on the form, another form should be displayed. Further, if the values are completed, new parts of these child forms should be shown in these child forms.
I want to express the relationship between HTML forms , HTML elements in these forms, and the values of these elements.
Based on information about the database, for example, in table fields and relationships in a table, I control through Doctrine, I generate ExtJS forms.
Now I need to inject the flow logic into my ExtJS forms so that I cannot directly copy the application stream with ExtJS code (JavaScript).
I want to create the appropriate JavaScript code at runtime based on a predefined configuration file.
For instance:
I have X forms
FORM 1. (displayed on startup)
|
|-> FROM 1.1 (only display after values have been inserted into FORM 1.)
|
|-> FROM 1.2 (only display after values have been inserted into FROM 1.1)
|
FROM 2. (display when something inserted into FORM 1.)
|
|-> FROM 2.1 (layout and elements of this form depend upon what has been
inserted into FROM 1.)
....
In addition, I want to display only parts of the forms if the user has filled in something in the input field
FORM 1. (displayed on startup)
|
|-> LAYER 1. (only display/activate after field <count> of FROM 1.
| has been filled in)
|
|-> LAYER 2. (only display/activate after field <count> of LAYER 1.
| has been filled in)
|
....
Then I want to display forms only if the value that the user filled in the form element passes a predefined condition
FORM 1 (displayed on startup)
|
|-> FROM 1.1 (only display if field <count> of FROM 1. is greater that 10
| count > 10)
|
|-> FROM 1.2 (if count < 10 display this form)
|
....
The last thing I want, based on the values inserted by the user in the parent form, is to establish rules for input elements in order to limit their input range (possible values)
Here is an example workflow

Is there a metalanguage for defining such a relationship?
- ?
,
J.