feat(web form list column): add options (#34132)

This commit is contained in:
Ravibharathi 2025-09-30 18:53:37 +05:30 committed by GitHub
parent aab3930180
commit d53725070d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 3 deletions

View file

@ -103,6 +103,7 @@ export default class WebFormList {
label: df.label,
fieldname: df.fieldname,
fieldtype: df.fieldtype,
options: df.options,
};
});
}

View file

@ -301,6 +301,7 @@ frappe.ui.form.on("Web Form List Column", {
if (!df) return;
doc.fieldtype = df.fieldtype;
doc.label = df.label;
doc.options = df.options;
frm.refresh_field("list_columns");
},
});

View file

@ -8,7 +8,8 @@
"field_order": [
"fieldname",
"fieldtype",
"label"
"label",
"options"
],
"fields": [
{
@ -30,19 +31,26 @@
"in_list_view": 1,
"label": "Fieldtype",
"read_only": 1
},
{
"fieldname": "options",
"fieldtype": "Text",
"in_list_view": 1,
"label": "Options"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2024-03-23 16:04:02.310851",
"modified": "2025-09-24 22:28:54.931089",
"modified_by": "Administrator",
"module": "Website",
"name": "Web Form List Column",
"naming_rule": "Autoincrement",
"owner": "Administrator",
"permissions": [],
"row_format": "Dynamic",
"sort_field": "creation",
"sort_order": "DESC",
"states": []
}
}

View file

@ -18,6 +18,7 @@ class WebFormListColumn(Document):
fieldtype: DF.Data | None
label: DF.Data | None
name: DF.Int | None
options: DF.Text | None
parent: DF.Data
parentfield: DF.Data
parenttype: DF.Data