cancel
Showing results for 
Search instead for 
Did you mean: 

Focusing a text field

Former Member
0 Kudos

Hi,

I have an input field in a view. This field is not getting focused when the view appears. What I mean is the cursor is not appearing in the field when the view appears and once the user taps on the field, it is focusing. So without tapping, how we can acheive this functionality.

Regards

MQ

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

get the AttributeInfo of the Context Node represented by the form element.

IWDAttributeInfo attribute = wdContext.nodeA().getNodeInfo().getAttribute(A.theattribute);

wdThis.wdGetAPI().requestFocus(currentAElement(), attribute);

(assuming you an element named A with an attribute called "theattribute")

Hope that helps

Jan

Answers (0)