<?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: Get form field values in formValidateBeforeSubmit in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-form-field-values-in-formvalidatebeforesubmit/m-p/243066#M196196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Chuck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually this is a harder problem than I expected, but as you summized, there is a helper function available to retrieve a form field by it's ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I put inside a "formValidateBeforeSubmit" function:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'label1');&lt;BR /&gt;var thisUn2 = scope.findFormFieldWithId(scope.allFormFields, 'singleentry');&lt;BR /&gt;alert(thisUn1.id + ":" + thisUn1.value);&lt;BR /&gt;alert(thisUn2.id + ":" + thisUn2.value);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hope this helps,&lt;BR /&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>Sat, 25 Feb 2017 00:13:25 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-02-25T00:13:25Z</dc:date>
    <item>
      <title>Get form field values in formValidateBeforeSubmit</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-form-field-values-in-formvalidatebeforesubmit/m-p/243065#M196195</link>
      <description>in the JavaScript body of a formValidationBeforeSubmit how do I the value of form fields for my validation code? Probably simple, but I'm not finding&amp;nbsp; it.Thanks</description>
      <pubDate>Fri, 28 Oct 2016 17:52:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-form-field-values-in-formvalidatebeforesubmit/m-p/243065#M196195</guid>
      <dc:creator>chuck_irvine</dc:creator>
      <dc:date>2016-10-28T17:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get form field values in formValidateBeforeSubmit</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-form-field-values-in-formvalidatebeforesubmit/m-p/243066#M196196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Chuck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually this is a harder problem than I expected, but as you summized, there is a helper function available to retrieve a form field by it's ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I put inside a "formValidateBeforeSubmit" function:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'label1');&lt;BR /&gt;var thisUn2 = scope.findFormFieldWithId(scope.allFormFields, 'singleentry');&lt;BR /&gt;alert(thisUn1.id + ":" + thisUn1.value);&lt;BR /&gt;alert(thisUn2.id + ":" + thisUn2.value);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hope this helps,&lt;BR /&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>Sat, 25 Feb 2017 00:13:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-form-field-values-in-formvalidatebeforesubmit/m-p/243066#M196196</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-25T00:13:25Z</dc:date>
    </item>
  </channel>
</rss>

