Initially selected control in InfoPath Forms Services

C

ChrisS

Hello all,

We've encountered some behavior we'd like to override in InfoPath Forms
Services. It appears the Forms Server selects the first editable field by
default (i.e. puts the cursor on). However, we always want Forms Server to
open the form at the top of the page but I've not seen that option in
InfoPath. Does anyone have any suggestions? If the user clicks the Save
button at the bottom of the page will the form stay at the bottom.

Thanks!
 
A

Anuma(GGK Tech)

Hi,

As of my knowledge page will be stay in the top of the form even if we
clicks on the "Save" button in the bottom of the page.
 
S

Swathi (GGK Tech)

Hi,
Do you want the cursor position to be changed to first field in the form? If
it is correct then in the button click event write the following code line.
thisXDocument.View.SelectText(FieldNode, Type.Missing);
Here FieldNode is the node of the field in which you want to place the
cursor (probably the first field) after clicking the button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top