@visns-studio/visns-components 3.8.3 → 3.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -246,6 +246,11 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
246
246
|
|
|
247
247
|
// Modify Validation for Label and Description based on Type
|
|
248
248
|
if (field.type === 'plaintext') {
|
|
249
|
+
// For other types, label is required
|
|
250
|
+
if (!field.label || field.label === '') {
|
|
251
|
+
errors.push('Please enter a label for the field.');
|
|
252
|
+
}
|
|
253
|
+
|
|
249
254
|
// For plaintext or plaintextheading, description is required
|
|
250
255
|
if (!field.description || field.description === '') {
|
|
251
256
|
errors.push('Please enter a description for the field.');
|
|
@@ -900,7 +905,7 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
900
905
|
}}
|
|
901
906
|
/>
|
|
902
907
|
<span className="fi__span prefocus">
|
|
903
|
-
Description
|
|
908
|
+
Description *
|
|
904
909
|
</span>
|
|
905
910
|
</label>
|
|
906
911
|
</div>
|
package/package.json
CHANGED