Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2004

Tip: Looking for answers? Try searching our database.

How do I insert text into one field based on the contents of another field?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
M. Swartztrauber - 24 Sep 2004 18:00 GMT
I'm trying to use rules to insert different text strings into one
field based on the existence of a few letters or a phrase present or
not in a previous field. Is this possible?
Josh Bertsch [MSFT] - 24 Sep 2004 18:40 GMT
Set the condition to evaluate based on "contain" or "does not contain"
certain characters or strings.

--josh bertsch

> I'm trying to use rules to insert different text strings into one
> field based on the existence of a few letters or a phrase present or
> not in a previous field. Is this possible?
M. Swartztrauber - 25 Sep 2004 17:40 GMT
Thanks.

However, none of the possible actions seem to accomodate an automatic
text entry. I thought it might be "Set a field's value" but this
appears to be for a logical or numerical result.

Am I missing it?

> Set the condition to evaluate based on "contain" or "does not contain"
> certain characters or strings.
[quoted text clipped - 4 lines]
> > field based on the existence of a few letters or a phrase present or
> > not in a previous field. Is this possible?
Josh Bertsch [MSFT] - 27 Sep 2004 20:52 GMT
You are on the right track.

There are two things to keep in mind.  Rules fire based on the field with
the rule changing.  So if you want to populate field2 when field1 contains
something specific, set the rule on field1.

The second is that the Condition Builder that is part of the "Set a field's
value" is just an XPath builder.  So any XPath will work.  Quotes are used
for literal strings.  Further, literal strings can just be typed into the
text well without having to go into the condition builder.

If this still isn't what you are looking for, you may need to provide a more
detailed explanation of your scenario.

In it's simplest form, with Rules in your scenario as i understand it, you
can type "foo bar" in field1 and field2 will be populated with some text
because "foo" is contained in field1.

--josh bertsch

> Thanks.
>
[quoted text clipped - 12 lines]
> > > field based on the existence of a few letters or a phrase present or
> > > not in a previous field. Is this possible?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.