<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Conditional statement in infopath for a field</title><link>https://www.infopathdev.com:443/forums/thread/101678.aspx</link><pubDate>Thu, 12 Mar 2015 03:20:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101678</guid><dc:creator>Manju</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101678</wfw:commentRss><description>Hi Donstephen thanks for ur reply.

Will give a try using expression.

Regards,
Manju</description></item><item><title>Re: Conditional statement in infopath for a field</title><link>https://www.infopathdev.com:443/forums/thread/101664.aspx</link><pubDate>Wed, 11 Mar 2015 16:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101664</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101664</wfw:commentRss><description>&lt;p&gt;Hi Manju,&lt;br /&gt;&lt;br /&gt;There are different approaches to achieve this but what I would simply do is create two action rules. The first rule would follow the first condition and set the target field to the desired value. You can check tick the checkbox for &amp;quot;Don&amp;#39;t run remaining rules if the condition of this rule is met&amp;quot; in case the second rule&amp;#39;s condition would have conflicts with the first one.&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;&lt;br /&gt;You might need to use an&amp;nbsp;expression similar to this if you have the rules on the same field:&lt;br /&gt;&lt;br /&gt;substring(xdDate:Today(), 6, 2) = 04 or substring(xdDate:Today(), 6, 2) = 06 or substring(xdDate:Today(), 6, 2) = 09 .... and so on&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure how your form is configured but this logic should be able to work.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;</description></item><item><title>Conditional statement in infopath for a field</title><link>https://www.infopathdev.com:443/forums/thread/101654.aspx</link><pubDate>Wed, 11 Mar 2015 03:53:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101654</guid><dc:creator>Manju</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101654</wfw:commentRss><description>Hi can we use a if else condition for a field to get the default values, if so can u correct the below statement.

To get the end date based on today() date

example:

if (substring(today(), 6, 2) = &amp;quot;04&amp;quot; or substring(today(), 6, 2) = &amp;quot;06&amp;quot; or substring(today(), 6, 2) = &amp;quot;09&amp;quot; or substring(today(), 6, 2) = &amp;quot;11&amp;quot;) then 
concat(substring(today(), 1, 7), &amp;quot;-30&amp;quot;) 
else if 
(substring(today(), 6, 2) = &amp;quot;01&amp;quot; or substring(today(), 6, 2) = &amp;quot;03&amp;quot; or substring(today(), 6, 2) = &amp;quot;05&amp;quot; or substring(today(), 6, 2) = &amp;quot;07&amp;quot; 
or substring(today(), 6, 2) = &amp;quot;08&amp;quot; or substring(today(), 6, 2) = &amp;quot;10&amp;quot; or substring(today(), 6, 2) = &amp;quot;12&amp;quot;) then
concat(substring(today(), 1, 7), &amp;quot;-31&amp;quot;)
else 
concat(substring(today(), 1, 7), &amp;quot;-28&amp;quot;)
end if

Thanks,

Regards,
Manju</description></item></channel></rss>