<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to do javascript calculation in the form field in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28789#M12271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately nothing is documented. I had to find all &amp;nbsp;this by crawling through the source.&lt;BR /&gt;There are a few "Helper" functions defined in render-form.js&lt;BR /&gt;&lt;BR /&gt;1. setItemVisibility - runs the visibility logic for the form&lt;/P&gt;&lt;P&gt;2. findFormFieldWithId - locates a specific form field within a collection&lt;/P&gt;&lt;P&gt;3. prepareFormFields - populate data into typeahead, table, dropdown etc from defined REST calls.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Im sure there are others, but since none are documented, it is hard to know what is going to change in the future so have to be careful what you use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 15:49:16 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-03-10T15:49:16Z</dc:date>
    <item>
      <title>How to do javascript calculation in the form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28786#M12268</link>
      <description>Hi, I'm new to Alfresco Activiti.I've already desgin a flow on activiti-app with a simple form.In the form, there are a textbox id named "cal", a dropdown field&amp;nbsp;id named "quantity" and amount field named "amount".What I want to do is use javascript to do auto calculation when value is changed on the</description>
      <pubDate>Thu, 09 Mar 2017 07:56:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28786#M12268</guid>
      <dc:creator>sprincess</dc:creator>
      <dc:date>2017-03-09T07:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do javascript calculation in the form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28787#M12269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your most recent inquiry I believe you have found the "helper" function, but as a matter of documentation here it is again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;scope.findFormFieldWithId(scope.allFormFields, 'quantity')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;This will get you a JSON object and depending on the type of field it is you can retrieve the value, id or name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Greg&amp;nbsp;&lt;/P&gt;&lt;P&gt;bp3‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:06:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28787#M12269</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-09T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to do javascript calculation in the form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28788#M12270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your kindly feedback.&lt;/P&gt;&lt;P&gt;I found it just by google, but it seems there are lack of information on google.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder to know what is the "helper" function?&lt;/P&gt;&lt;P&gt;May I know where I could find it? thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 02:17:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28788#M12270</guid>
      <dc:creator>sprincess</dc:creator>
      <dc:date>2017-03-10T02:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to do javascript calculation in the form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28789#M12271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately nothing is documented. I had to find all &amp;nbsp;this by crawling through the source.&lt;BR /&gt;There are a few "Helper" functions defined in render-form.js&lt;BR /&gt;&lt;BR /&gt;1. setItemVisibility - runs the visibility logic for the form&lt;/P&gt;&lt;P&gt;2. findFormFieldWithId - locates a specific form field within a collection&lt;/P&gt;&lt;P&gt;3. prepareFormFields - populate data into typeahead, table, dropdown etc from defined REST calls.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Im sure there are others, but since none are documented, it is hard to know what is going to change in the future so have to be careful what you use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:49:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-do-javascript-calculation-in-the-form-field/m-p/28789#M12271</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-10T15:49:16Z</dc:date>
    </item>
  </channel>
</rss>

