Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/components/accordions.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,6 @@ export default [
"defaultValue",
"showForDesktop",
{name: "customFormatter", showFor: "FormInput"},
{name: "ariaLabel", showFor: "FormInput"},
{name: "ariaLabel", showFor: "FormSelectList"},
{name: "ariaLabel", showFor: "FormDatePicker"},
{name: "ariaLabel", showFor: "FormCheckbox"},
{name: "ariaLabel", showFor: "FormDatePicker"},
{name: "ariaLabel", showFor: "FileUpload"},
{name: "ariaLabel", showFor: "FileDownload"},
{name: "ariaLabel", showFor: "FormSelectList"},
{name: "ariaLabel", showFor: "FormButton"},
{name: "ariaLabel", showFor: "FormTextArea"},
{name: "tabindex", showFor: "FormInput"},
{name: "tabindex", showFor: "FormSelectList"},
{name: "tabindex", showFor: "FormDatePicker"},
{name: "tabindex", showFor: "FormCheckbox"},
{name: "tabindex", showFor: "FormDatePicker"},
{name: "tabindex", showFor: "FileUpload"},
{name: "tabindex", showFor: "FileDownload"},
{name: "tabindex", showFor: "FormSelectList"},
{name: "tabindex", showFor: "FormButton"},
{name: "tabindex", showFor: "FormTextArea"},
{name: "encryptedConfig", showFor: "FormInput"},
{name: "variablesToSubmit", showFor: "FormButton"},
],
Expand Down
17 changes: 17 additions & 0 deletions src/components/inspector/variables-to-submit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,23 @@ export default {
* Single Responsibility: Only handles variable name extraction
*/
extractVariableFromItem(item, variables) {
// Components that don't have submittable variables
const displayOnlyComponents = [
'FormNestedScreen',
'FormHtmlViewer',
'FormMultiColumn',
'FormCollectionRecordControl',
'FormCollectionViewControl',
'FormAvatar',
'FormListTable',
'FormAnalyticsChart',
'CaseProgressBar',
'FileDownload',
];
// Skip display-only and container components that don't have submittable variables
if (displayOnlyComponents.includes(item.component)) {
return;
}
const variableName = item.config?.name;
if (variableName && !variableName.startsWith('_parent.')) {
variables[variableName] = null;
Expand Down
Loading