@@ -1334,8 +1334,17 @@ export const multiSignEmbed = async (
1334
1334
if ( signyourself ) {
1335
1335
updateItem = item . pos ;
1336
1336
} else {
1337
+ // Checking required and optional widget types
1338
+ // For both required and optional widgets, handle signurl, defaultValue, and response as the widget's data
1339
+ // If the widget type is checkbox or radio (whether required or optional), we don't need to validate its value.
1340
+ // Instead, add an empty checkbox/radio, or if a value exists, mark the checkbox/radio as checked.
1337
1341
updateItem = item . pos . filter (
1338
- ( data ) => data ?. options ?. status === "required"
1342
+ ( data ) =>
1343
+ data ?. options ?. SignUrl ||
1344
+ data ?. options ?. defaultValue ||
1345
+ data ?. options ?. response ||
1346
+ data ?. type === "checkbox" ||
1347
+ data ?. type === radioButtonWidget
1339
1348
) ;
1340
1349
}
1341
1350
} else {
@@ -1355,7 +1364,6 @@ export const multiSignEmbed = async (
1355
1364
}
1356
1365
} )
1357
1366
) ;
1358
-
1359
1367
widgetsPositionArr . forEach ( async ( position , id ) => {
1360
1368
let img ;
1361
1369
if ( [ "signature" , "stamp" , "initials" , "image" ] . includes ( position . type ) ) {
@@ -1406,7 +1414,7 @@ export const multiSignEmbed = async (
1406
1414
} ;
1407
1415
const color = position ?. options ?. fontColor ;
1408
1416
const updateColorInRgb = getWidgetsFontColor ( color ) ;
1409
- const fontSize = parseInt ( position ?. options ?. fontSize || 13 ) ;
1417
+ const fontSize = parseInt ( position ?. options ?. fontSize || 12 ) ;
1410
1418
const widgetTypeExist = [
1411
1419
textWidget ,
1412
1420
textInputWidget ,
0 commit comments