Last edited one year ago
by Demo writer

Onboarding.form: Difference between revisions

(Created page with "{ "lang": "json", "form_name": "Onboarding", "title": "Onboarding checklist", "showTitle": false, "showFormName": false, "buttonsFloat": false, "ca...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 22: Line 22:
     "show_target_afterAction": false,
     "show_target_afterAction": false,
     "listeners": {
     "listeners": {
         "beforeSubmitData": "jscb:function( data ) {\nvar dfd = $.Deferred();\n        var total = 0;\n\tvar checked = 0;\n\tvar items = this.getItems();\n  for( var name in data ) {\n  \tif ( !name.startsWith( 'onboard_item' ) ) {\n    \tcontinue;\n    }\n    total++;\n    if ( data[name].done === true ) {\n    \tchecked++;\n    }\n  }\ndata.progress = ( 100 * checked ) / total;\n  dfd.resolve( data );\n\nreturn dfd.promise();\n  \n}"
         "beforeSubmitData": "jscb:OnboardingCalcProgress"
     },
     },
     "items": [
     "items": [
Line 330: Line 330:
                 "edit"
                 "edit"
             ],
             ],
             "title": "Erste Arbeitswoche",
             "title": "First week at work",
             "widget_classes": [],
             "widget_classes": [],
             "style": "",
             "style": "",
Line 339: Line 339:
         {
         {
             "name": "checkbox_multi-taetig",
             "name": "checkbox_multi-taetig",
             "label": "Tätigkeiten",
             "label": "Tasks",
             "help": "",
             "help": "",
             "noLayout": false,
             "noLayout": false,

Latest revision as of 08:24, 13 April 2023