<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to hide submit button based on calculated field?</title><link>https://www.infopathdev.com:443/forums/thread/122458.aspx</link><pubDate>Wed, 19 Feb 2020 07:17:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122458</guid><dc:creator>RegionH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=122458</wfw:commentRss><description>Hi Hilary,

Thanks for your reply. I solved it by changing the calculated field to a text field. In the text field I set the standard value to my formula e.g. number(boolean(string-length(dfs:dataFields/my:SharePointListItem_RW/my:Sagstype))) + number(boolean(string-length(dfs:dataFields/my:SharePointListItem_RW/my:Ansvarlig/pc:Person/pc:DisplayName))) + number(boolean(string-length(dfs:dataFields/my:SharePointListItem_RW/my:Title))).

Best regards
Morten</description></item><item><title>Re: How to hide submit button based on calculated field?</title><link>https://www.infopathdev.com:443/forums/thread/122457.aspx</link><pubDate>Wed, 19 Feb 2020 01:00:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122457</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122457.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=122457</wfw:commentRss><description>It is possible to hide any type of a button based on a condition. Can you attach a copy of your form to a reply so I can take a look at it? Under the Options tab....</description></item><item><title>How to hide submit button based on calculated field?</title><link>https://www.infopathdev.com:443/forums/thread/122453.aspx</link><pubDate>Tue, 18 Feb 2020 12:54:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122453</guid><dc:creator>RegionH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=122453</wfw:commentRss><description>Hi,

My form is build with.

I have two calculated fields in my form for e.g. all mandatory fields is filled out or a specific text string is contained in &amp;#39;Sagsnavn&amp;#39;.

Field name is ObligatoriskeOk and maximum calculated value is 3:
number(boolean(string-length(dfs:dataFields/my:SharePointListItem_RW/my:Sagstype))) + number(boolean(string-length(dfs:dataFields/my:SharePointListItem_RW/my:Ansvarlig/pc:Person/pc:DisplayName))) + number(boolean(string-length(dfs:dataFields/my:SharePointListItem_RW/my:Title)))

Field name is LogiskeOk and maximum calculated value is 1:
number(boolean(contains(dfs:dataFields/my:SharePointListItem_RW/my:Title, &amp;quot;UDBUD AF&amp;quot;)))

If the overall sum is not equal / &amp;lt;&amp;gt; to 3 then the submit button should be hidden. 

It seems like it is not possible to hide submit button based on a calculated value. Is that correct?

Is there a workaround?

Best regards
Morten</description></item></channel></rss>