Hi i am using microsoft infopath to create forms for sharepoint and i was wondering how to auto populate fields with sub strings. Basically i have 3 fields; full name , first name and last name. the full name field is a drop down list containing full names. i want first name and last name to be populated based on the full name selected. so if for example say someone selects the full name "joe bloggs" from the drop down list, this selection will populate the first name field with "Joe" and the last name field with "bloggs" automatically. can i use a function in infopath to split the full name string into 2 sub strings (first name and last name). ?
Info-Path - how to split a string into 2 substrings
3.7k views Asked by derek At
2
substring-before(<full name field>, " ")
substring-after(<full name field>, " ")
Note that the above assumes you only have TWO names in the Full Name list.