[jira] Created: (OFBIZ-3543) Ability to use the actual form name in javascript snippets in extended forms

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-3543) Ability to use the actual form name in javascript snippets in extended forms

Nicolas Malin (Jira)
Ability to use the actual form name in javascript snippets in extended forms
----------------------------------------------------------------------------

                 Key: OFBIZ-3543
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3543
             Project: OFBiz
          Issue Type: Improvement
            Reporter: Jacques Le Roux
            Priority: Minor


For now, when you extend a form containing javascript snippets which use the form name (document.formName.fieldName) you have to pass the real name of the form into the javascript snippets.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3543) Ability to use the actual form name in javascript snippets in extended forms

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853254#action_12853254 ]

Adrian Crum commented on OFBIZ-3543:
------------------------------------

Form widgets should not contain javascript snippets. Javascript is confined to HTML rendering and the form widgets are supposed to be rendering format agnostic.


> Ability to use the actual form name in javascript snippets in extended forms
> ----------------------------------------------------------------------------
>
>                 Key: OFBIZ-3543
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3543
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Jacques Le Roux
>            Priority: Minor
>
> For now, when you extend a form containing javascript snippets which use the form name (document.formName.fieldName) you have to pass the real name of the form into the javascript snippets.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3543) Ability to use the actual form name in javascript snippets in extended forms

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853258#action_12853258 ]

Jacques Le Roux commented on OFBIZ-3543:
----------------------------------------

We could have this only used in html rendering? Could we not have rendered type specific options? Of course this wouls need a mean to enforce the use only with the concerned rendering.
Another way is to close this issue and when a javascript snippet is used in an extended form to simply pass the name as I did in a custom application which uses only HTML.

> Ability to use the actual form name in javascript snippets in extended forms
> ----------------------------------------------------------------------------
>
>                 Key: OFBIZ-3543
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3543
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Jacques Le Roux
>            Priority: Minor
>
> For now, when you extend a form containing javascript snippets which use the form name (document.formName.fieldName) you have to pass the real name of the form into the javascript snippets.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.