- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2023 10:42 AM
This are two fields in catalogue form.
PH last name- Mary
Check digit- when you entered something in field"PH last name" then the starting ( First character) letter of name will.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2023 11:25 AM
Hi @User267 ,
Hope you are doing great.
Create on change client script on last name field and try usig below script in onchange function:
var lastnameField = g_form.getValue('lastname');
if (lastnameField.length > 0) {
var firstCharacter = newValue.charAt(0);
g_form.setValue('check_digit', firstCharacter);
} else {
g_form.clearValue('check_digit');
}
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2023 11:33 AM
Thank you so much

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2023 11:45 AM
Hi,
What is the purpose of the "Check digit" field?
If it always should contain the first letter of another field value, there is not really any need to create a input field for check digit, since the user should never fill out this field.
You can extract the value after the form has been filled out, without the additional variable.
Providing example on how to extract the first character from a variable with Flow designer.