<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Set a field value IF/OR Based on two fields</title><link>https://www.infopathdev.com:443/forums/thread/124405.aspx</link><pubDate>Tue, 31 Aug 2021 15:09:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124405</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124405.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=124405</wfw:commentRss><description>You can use the approach outlined here: https://docs.microsoft.com/en-us/archive/blogs/infopath/conditional-default-values</description></item><item><title>Set a field value IF/OR Based on two fields</title><link>https://www.infopathdev.com:443/forums/thread/124404.aspx</link><pubDate>Tue, 31 Aug 2021 14:10:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124404</guid><dc:creator>DarthBrute</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=124404</wfw:commentRss><description>I want to concat a few fields together to maintain a unique Title for sharepoint list items.

However due to URL length restrictions I need to cut down the size of the title. In order to do that I want to identify two fields (FieldA and FieldB) to use.

FIELDA will never not be empty. It is a required field.

If FIELDA is not empty and FIELDB is empty then concat FIELDA.
OR
If FIELDA is not empty and FIELDB is not empty then concat FIELDB.

Here is my current concat formula: concat(substring-before(Registration Cut-Off Date, &amp;quot;T&amp;quot;), &amp;quot; &amp;quot;, Office, &amp;quot; &amp;quot;, FIELDA, &amp;quot; &amp;quot;, FIELDB)


Now I did figure out a way to do it using action rules and having a &amp;quot;helper field&amp;quot;. But is there a way to do this using xpath all in the same formula/field?</description></item></channel></rss>