Quantcast
Viewing all articles
Browse latest Browse all 17574

Set a field value on button click in InfoPath 2010 form without code

Hi,

I have an InfoPath form, I want to hide 'Submit' button, once the user submits it to his supervisor. Supervisor dont need 'Submit' button.

Is there any way to hide it without code? Anyway, I am using this below code. But, it is not working for the single button. Like, Submit and hide.

public void CTRL25_15_Clicked(object sender, ClickedEventArgs e)
        {
            XPathNavigator Hidevalue = this.MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:DO", this.NamespaceManager);

            Hidevalue.SetValue("1");
        }

Any suggestions will be appreciated.


Cheers, R.


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>