Search - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

Search

Page 5 of 8 (73 items) « First ... < Previous 3 4 5 6 7 Next > ... Last »
  • Re: Additional commas being displayed when using a repeating table bound to a SharePoint list

    Throw this condition into your desired field: concat(substring-before(../my:field1, &quot;,&quot;), substring-after(../my:field1, &quot;,&quot;)) Replace the field1 with whatever field you&nbsp;are using or however you are populating your data. It will strip that second comma out of there.
    Posted to Newbie Questions (Forum) by Lockdown on 09-16-2011
  • Re: Complex Repeating List Validation (well it is for me...)

    Hey Brett, So here is the logic that I&#39;m pulling from your post. Both need to start out as mandatory fields. This is done using&nbsp;data validation&nbsp;on BBB and CCC that say these drop downs&nbsp;cannot be blank. Now to make sure the asterisk dissapears after selecting one or the other, you will have to add some more logic onto each of ...
    Posted to General (Forum) by Lockdown on 09-16-2011
  • Re: Calculating Days and Time

    You would most likely have to fiddle around with the formula for time, but I think that example will give you a general idea of how to get it done.
    Posted to Newbie Questions (Forum) by Lockdown on 08-31-2011
  • Re: Random figure with button

    Q. Why do I have to write &quot;&amp;&amp;&quot; in the &quot;else if...&quot; row? A. This is the logical &quot;AND&quot; operator. It basically says, If x AND y AND z are not true, then run the code contained in the brackets beneath the if statement. Q. random = ((Math.round(Math.random() * 10)) % 2) + 4: What is the % 2 doing? Why do you add ...
    Posted to Code (Forum) by Lockdown on 08-31-2011
  • Re: Random figure with button

    This does the trick, just tested it out. You will just have to convert the Xpath values and you should be good to go. &nbsp; var temp = Math.random() * 10; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var random = 0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (temp &gt;= 0 &amp;&amp; temp &lt;= ...
    Posted to Code (Forum) by Lockdown on 08-30-2011
  • Re: Random figure with button

    XDocument.DOM.selectSingleNode(&quot;/my:myFields/my:field1&quot;).text = Math.round(Math.random()*10); &nbsp;The part in quotes is the Xpath of your field. So just right click your field1 element on the right task pane and select &#39;Copy Xpath&quot;, then place it in the quotes. Next, add a button to your form. Right click it and select ...
    Posted to Code (Forum) by Lockdown on 08-29-2011
  • Re: Random figure with button

    Are these browser enabled forms? You can accomplish this with one line of code actually. It would look something like this in Jscript. XDocument.DOM.selectSingleNode(&quot;/myFields/ID&quot;).text = Math.random()*10; &nbsp;That will give you a decimal point between 0 and 1. You will have to round it or format it as an ...
    Posted to Code (Forum) by Lockdown on 08-26-2011
  • Re: Calculating Days and Time

    I&#39;m attaching a form with the idea from that blog.
    Posted to Newbie Questions (Forum) by Lockdown on 08-25-2011
  • Re: Calculating Days and Time

    Check out this site http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/
    Posted to Newbie Questions (Forum) by Lockdown on 08-23-2011
  • Re: Change color of repeating section based on count

    Here is what you gotta do: Add&nbsp;2 conditions to the conditional formatting section of your repeating section. Use these two equations. The Mod operator (mod, %) really just gives you a remainder as an output. 5 mod 2 = 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5/2 has a remainder of 1 6 mod 3 = 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6/3 ...
    Posted to Controls (Forum) by Lockdown on 08-23-2011
Page 5 of 8 (73 items) « First ... < Previous 3 4 5 6 7 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.