MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / getWidgetValue

Function getWidgetValue

apps/OpenSign/src/pages/SignyourselfPdf.jsx:330–347  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

328 }
329 };
330 const getWidgetValue = (type) => {
331 switch (type) {
332 case "name":
333 return pdfDetails[0].ExtUserPtr.Name;
334 case "company":
335 return pdfDetails[0].ExtUserPtr.Company;
336 case "job title":
337 return pdfDetails[0].ExtUserPtr.JobTitle;
338 case "email":
339 return pdfDetails[0].ExtUserPtr.Email;
340 case "checkbox":
341 return true;
342 case "date":
343 return getDate();
344 default:
345 return "";
346 }
347 };
348 //function for setting position after drop signature button over pdf
349 const addPositionOfSignature = (item, monitor) => {
350 setCurrWidgetsDetails({});

Callers 2

addPositionOfSignatureFunction · 0.85
addWidgetSelfsignOptionsFunction · 0.85

Calls 1

getDateFunction · 0.90

Tested by

no test coverage detected