Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] Re: on_submit() Javascript function definition

Subject: COmanage Developers List

List archive

[comanage-dev] Re: on_submit() Javascript function definition


Chronological Thread 
  • From: Scott Koranda <>
  • To: Arlen Johnson <>
  • Cc:
  • Subject: [comanage-dev] Re: on_submit() Javascript function definition
  • Date: Thu, 27 Sep 2018 09:42:40 -0500
  • Ironport-phdr: 9a23:IoXbth2aMY2QjBjismDT+DRfVm0co7zxezQtwd8ZseISL/ad9pjvdHbS+e9qxAeQG9mDtLQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYQhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7Vq4/Vyi84Kh3SR/okCYHOCA/8GHLkcx7kaZXrAu8qxBj34LYZYeYP+d8cKzAZ9MXXWRPUMZPWSJcAY28YYQAAPYcMulaoYbwvEcOoQekCAWwGO/i0CFEi3nr1qM6yeQhFgTG0RQ9Ed0St3TUsMn1P7oXX+Cy1qnH1zPDYO5M1jzg74XIaRMhofaWXb1qd8re1FMgGhjKjlWVs4PlPjeV2v4RvGic6uptTOSigHMkpQFpujWj2MYhhpXLi48QxFDJ9j52zJowKNC3S0N2YNGpHZ5Ouy2GMoZ7R8AvT390tyoi17ELt5+2cDIXxJkmxRPTcfKKfomS7h79SuqcIzF1j29/dr2lnRa9602gx/X8Vsaq1FZKqTJIktzWuXAM0xzf89GHSudg8ku41jeC1B7f5f1eLUA7kqrbLJEhwroumZYJrUvDGSr2lF33jK+QaEok5vCl5/rmb7n6pJKRMoF0hwLlPagyn8GyDuc1PwkBUmWe5+iwyLju8Ej6TblUkvI6iqzZv4rbJcQfqK65GQhV0oM75hakDDem184YkmMBLF1YYh2KlIfpO1TUL/D5CfezmUijkDBux/zeJL3uHo3NLmTfkLfmZbty90lcyA8pwtBZ/Z1UBa8OLOvuVUDvqtzVFRs5Mw2vw+b7E9VxyJkSWWOJAq+FLqzSq1mI6fwzI+WSfoMapivyK+V2r8Lp2FYjnVIbNYuu3Z0Mb3bwSv18J0ifSWH0gtobEGwDugE5U+Pwj0CaFzVUYiDhcbg742QAA4W6Ec/gQZqkhrCIlHOgHZpMb2ZKA3iDFH7pc8OPXPJaO3HaGdNojjFRDevpcIQmzxz78Vaik7c=

> It appears that that function is intended to live in each fields.inc file as
> a means of handling view-specific form manipulation. The call is found in 22
> fields.inc files, but the function definition only exists in two (see
> ~/app/View/CmpEnrollmentConfigurations/fields.inc and
> ~/app/View/CoIdentifierAssignments/fields.inc).
>
> Those other twenty files should either have that call removed from the
> submit button or a stub function should be placed in each file.
>
> If you need the function, add it to the fields.inc file as in the
> CoIdentifierAssignments or CmpEnrollmentConfigurations example. (I'll note
> that the latter is really just a stub - so only one fields.inc file in
> ~/app/View makes use of this.)

Interesting.

I asked because I am finishing a plugin. For my plugin I also have

<?php print $this->Form->submit($submit_label, array('onClick' =>
'on_submit()')); ?>

(because I am copying "existing standard code") but I have not created the
Javascript function on_submit().

For my plugin when I click the button the console logs a message that
on_submit() is not defined and the form is not submitted.

I wonder why that is not the case for the other twenty files?

Thanks,

Scott




Archive powered by MHonArc 2.6.19.

Top of Page