Skip to content

Commit 3b69d66

Browse files
committed
form issue fix
1 parent f7a1d50 commit 3b69d66

File tree

3 files changed

+8
-42
lines changed

3 files changed

+8
-42
lines changed

component-definition.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,11 @@
174174
"fields": [
175175
{
176176
"name": "source",
177-
"selector": "div>div>p:nth-child(1)>a[href]"
178-
},
179-
{
180-
"name": "sourceText",
181-
"selector": "div>div>p:nth-child(1)>a"
177+
"selector": "div>div>p:nth-child(1)"
182178
},
183179
{
184180
"name": "action",
185-
"selector": "div>div>p:nth-child(2)>a[href]"
186-
},
187-
{
188-
"name": "actionText",
189-
"selector": "div>div>p:nth-child(2)>a"
181+
"selector": "div>div>p:nth-child(2)"
190182
}
191183
]
192184
}

component-models.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -257,31 +257,19 @@
257257
"id": "form",
258258
"fields": [
259259
{
260-
"component": "text",
260+
"component": "richtext",
261261
"name": "source",
262262
"label": "Form Source URL",
263263
"valueType": "string",
264264
"required": true,
265265
"description": "URL to the JSON form definition"
266266
},
267267
{
268-
"component": "text",
269-
"name": "sourceText",
270-
"label": "Source Link Text",
271-
"valueType": "string"
272-
},
273-
{
274-
"component": "text",
268+
"component": "richtext",
275269
"name": "action",
276270
"label": "Submit Endpoint",
277271
"valueType": "string",
278272
"description": "URL where form data is submitted"
279-
},
280-
{
281-
"component": "text",
282-
"name": "actionText",
283-
"label": "Submit Link Text",
284-
"valueType": "string"
285273
}
286274
]
287275
},

ue/models/blocks/form.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
"rows": 1,
1111
"columns": 1,
1212
"fields": [
13-
{ "name": "source", "selector": "div>div>p:nth-child(1)>a[href]" },
14-
{ "name": "sourceText", "selector": "div>div>p:nth-child(1)>a" },
15-
{ "name": "action", "selector": "div>div>p:nth-child(2)>a[href]" },
16-
{ "name": "actionText", "selector": "div>div>p:nth-child(2)>a" }
13+
{ "name": "source", "selector": "div>div>p:nth-child(1)" },
14+
{ "name": "action", "selector": "div>div>p:nth-child(2)" }
1715
]
1816
}
1917
}
@@ -24,31 +22,19 @@
2422
"id": "form",
2523
"fields": [
2624
{
27-
"component": "text",
25+
"component": "richtext",
2826
"name": "source",
2927
"label": "Form Source URL",
3028
"valueType": "string",
3129
"required": true,
3230
"description": "URL to the JSON form definition"
3331
},
3432
{
35-
"component": "text",
36-
"name": "sourceText",
37-
"label": "Source Link Text",
38-
"valueType": "string"
39-
},
40-
{
41-
"component": "text",
33+
"component": "richtext",
4234
"name": "action",
4335
"label": "Submit Endpoint",
4436
"valueType": "string",
4537
"description": "URL where form data is submitted"
46-
},
47-
{
48-
"component": "text",
49-
"name": "actionText",
50-
"label": "Submit Link Text",
51-
"valueType": "string"
5238
}
5339
]
5440
}

0 commit comments

Comments
 (0)