<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Is it possible to use math.random to generate web app item name?</title>
    <link>https://forums.adobe.com/community/business_catalyst/how_to-html-css-javascript?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 30 Sep 2014 15:22:32 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-09-30T15:22:32Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Is it possible to use math.random to generate web app item name?</title>
      <link>https://forums.adobe.com/message/6777435?tstart=0#6777435</link>
      <description>&lt;!-- [DocumentBodyStart:60b23644-eb61-424b-9ed9-866585643f27] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I think I figured it out. If anybody is interested:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;script&amp;gt;&lt;/p&gt;&lt;p&gt;var i=Math.random();&lt;/p&gt;&lt;p&gt;document.getElementById('ItemName').value=i;&lt;/p&gt;&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I should add that if you are trying to do this, be sure to place your script AFTER the element you want to be pre-populated. Otherwise, the script will run before the item loads and it won't work.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:60b23644-eb61-424b-9ed9-866585643f27] --&gt;&lt;img src='/beacon?t=1415884488841' /&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:37:03 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6777435?tstart=0#6777435</guid>
      <dc:date>2014-09-30T14:37:03Z</dc:date>
      <clearspace:dateToText>1 month 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Is it possible to use math.random to generate web app item name?</title>
      <link>https://forums.adobe.com/message/6777290?tstart=0#6777290</link>
      <description>&lt;!-- [DocumentBodyStart:41975b7c-9bea-403b-8644-0ef3eec4b342] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Can math.random() be used to auto fill the name field of a web app item? I have a client that needs web app item submissions to be random and we don't want to ask the user to have to create a name for their submission. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:41975b7c-9bea-403b-8644-0ef3eec4b342] --&gt;</description>
      <pubDate>Tue, 30 Sep 2014 13:54:01 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6777290?tstart=0#6777290</guid>
      <dc:date>2014-09-30T13:54:01Z</dc:date>
      <clearspace:dateToText>1 month 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

