-
Notifications
You must be signed in to change notification settings - Fork 92
New Feature: "url" pair for member/elements #22
Comments
That's a good idea. Actually I think I will implement a URL subscriber that loads a JSON file and generates the form into any element. |
By when ;-) |
Well I actually just pushed some of the updates. It's pretty straightforward and easy to add, too:
Should already do the trick to do something like this:
|
So I'm trying to think how to translate that in to something I need. I have several reusable sub forms which I will present as a collection of Accordions. So I want to be able to store them as JSON and include them alng the lines of: { Where each jso file would contain: { And even the "elements" here could be a JSON file. How would the syntax work? Cheers, Roy |
Each entries object is nothing more but a div wrapper (which is why you don't need the type). Have you tried
? If the URL subscriber works properly this should just do it. |
The request to to add a "url" pair to member and element lists for the dForm plugin. The syntax would be of the format:
"url" : "http://...."
and would be applied as follows:
In th case of an accordion, the .json file would contain one or more of the following:
{
"caption" : "Customer Information",
"elements" : [ {...} ]
}
In the case of a the .json file would contain: { "value", "text", "value", "text", "value", "text", "value", "text" } This would allow for truly dynamic forms. Cheers, Roy
The text was updated successfully, but these errors were encountered: