JScript - Generate Mailing Name & Salutation
$30-100 USD
Bezahlt bei Lieferung
I require a very simple Java Script function that will generate the Mailing Name and Salutation from six other fields within the same form.
The six fields on the form are:
Title1
FName1
GName1
Title2
FName2
GName2
The **Mailing Name** (called name on the form) is to be populated when the field 'gets focus'.
The value of Mailing Name could be different pending on three different senarios.
1. When Title2, FName2 and GName2 are empty:
Mailing Name = Title1 first letter of GName1 and FName1
EG: Mr J Smith
2. When FName1 = FName2
Mailing Name = Title1 and "and" and Title2 first letter of GName1 and FName1
EG: Mr and Mrs J Smith
3. When FName1 <> FName2
Mailing Name = Title1 first letter of GName1 and FName1 and "and" and Title2 first letter of GName2 and FName2
EG: Mr J Smith and Miss A Jones
**The Salutation** (called salutation on the form) is to be populated when the field 'gets focus'.
The value of Salutation could be different pending on three different senarios.
1. When Title2, FName2 and GName2 are empty:
Salutation = Title1 and FName1
EG: Mr Smith
2. When FName1 = FName2
Salutation = Title1 and "and" and Title2 FName1
EG: Mr and Mrs Smith
3. When FName1 <> FName2
Salutation = Title1 and FName1 and "and" and Title2 FName2
EG: Mr Smith and Miss Jones
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4) Code must be well commented.
## Platform
Windows Server 2000
Projekt-ID: #2916701