- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 11:55 AM
Hi Folks,
I have two fields, "X" and "Y," where "X" contains my first name and "Y" has my last name. If I remove the first name from one of the fields, the last_name will also be removed automatically.
Thanks,
Mustafeez.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 07:07 PM - edited 04-08-2024 07:08 PM
Hi @Mustafeez ,
Write client script [onChange ] on the same table and check if first field value is empty or "" then clear the value from last name field.
and if this for any catalog item , then write the onChange catalog client script with same code logic.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:45 PM - edited 04-08-2024 09:58 PM
Hi @Mustafeez ,
Not pretty much clear the requirement, however mentioned below approach. Please mention the requirement clearly with screenshot.
a. If requirement is " remove the first name from one of the fields, the last_name will also be removed automatically."
Please write " on change " client script on "First Name" field & add "clear value" function for the value of the last name field.
b.
If requirement is " remove the first name from one of the fields, the last_name will also be removed automatically."
Please write " on change " client script on "First Name" field & add "remove function" for the last name field.
c. you can use UI policy as well based on your requirement.
d. Use before/update BR where its set the 'last name' value empty based on the 'first_name' value.
Please mark as helpful & accept answer if it's really worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 06:39 PM
I didn't quite understand what needs to be done. Could you contextualize the issue and provide more information?
MVP 2025 ✨
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 07:07 PM - edited 04-08-2024 07:08 PM
Hi @Mustafeez ,
Write client script [onChange ] on the same table and check if first field value is empty or "" then clear the value from last name field.
and if this for any catalog item , then write the onChange catalog client script with same code logic.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 07:20 AM
Thanks @AshishKM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:45 PM - edited 04-08-2024 09:58 PM
Hi @Mustafeez ,
Not pretty much clear the requirement, however mentioned below approach. Please mention the requirement clearly with screenshot.
a. If requirement is " remove the first name from one of the fields, the last_name will also be removed automatically."
Please write " on change " client script on "First Name" field & add "clear value" function for the value of the last name field.
b.
If requirement is " remove the first name from one of the fields, the last_name will also be removed automatically."
Please write " on change " client script on "First Name" field & add "remove function" for the last name field.
c. you can use UI policy as well based on your requirement.
d. Use before/update BR where its set the 'last name' value empty based on the 'first_name' value.
Please mark as helpful & accept answer if it's really worthy for you.