Use our Google Custom Search for best site search results.
Search
-
Throw this condition into your desired field:
concat(substring-before(../my:field1, ","), substring-after(../my:field1, ","))
Replace the field1 with whatever field you are using or however you are populating your data. It will strip that second comma out of there.
-
Hey Brett,
So here is the logic that I'm pulling from your post.
Both need to start out as mandatory fields. This is done using data validation on BBB and CCC that say these drop downs 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 ...
-
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.
-
Q. Why do I have to write "&&" in the "else if..." row?
A. This is the logical "AND" 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 ...
-
This does the trick, just tested it out. You will just have to convert the Xpath values and you should be good to go.
var temp = Math.random() * 10;
var random = 0;
if (temp >= 0 && temp <= ...
-
XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text = Math.round(Math.random()*10);
The part in quotes is the Xpath of your field. So just right click your field1 element on the right task pane and select 'Copy Xpath", then place it in the quotes.
Next, add a button to your form. Right click it and select ...
-
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("/myFields/ID").text = Math.random()*10;
That will give you a decimal point between 0 and 1. You will have to round it or format it as an ...
-
I'm attaching a form with the idea from that blog.
-
Check out this site
http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/
-
Here is what you gotta do:
Add 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 5/2 has a remainder of 1
6 mod 3 = 0 6/3 ...