How to know the current field (cursor focus) using @functions

Hi All,

I have an Action button with @functions, I need to know the currently selected field (the field having the cursor in it). I tried @ThisName, but once the action button is clicked it will not give any field value. Is there any other way?

Thanks in advance,

Agasthya

Subject: How to know the current field (cursor focus) using @functions

There is no currently selected field!

As soon as you click the button, the field loses focus, and it’s no longer selected.

Here’s how you can achieve the result. Use the “Entering” event to put the name of the field in a hidden field, then have your button look at the value of the hidden field.

Subject: RE: How to know the current field (cursor focus) using @functions

Hi,

Thanks for the info. Infact I was using “Entering” and “Exiting” events and setting value to a hidden field as you suggested. The problem is I need to do for all the forms. So, I wanted to know if there is any other command similar to @ThisName.

One more question I have is: If the RichTextItem(body) contains any fields, and the cursor is in that fields, then is there a way to know the fields?

Thanks in advance,

Agasthya