conditional free text entry

Dear All,

I'd like to set up a pop up message or some kind of prompt if a user types particular words in one field. For example if they type "apple" a prompt woudl appear to say " You cannot type apple". How could this be done?

Any help would be much appreciated.

Regards,

hutia

June 18th, 2015 5:00am

Hi,

As far as I know, we can't complete this scenario with field. And we might do it via some Active x controls and VBA code.

If you need help about coding, I recommend you post the question to MSDN forum:

http://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

George Zhao
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2015 2:25am

I have some JavaScript-based pseudo-code:

textField.onUpdate = function() { var text = textField.value; for (i in text.split(" ")) { if (i in bannedWords) { alert("That's a banned word!") } } }

I hope this helps!

June 23rd, 2015 3:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics