- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 08:27 AM
Hi,
I need help on how to create a catalog client script to convert a list variable containing values from a table to a string and will be used as part of a single line text variable.
Details:
I have a list variable calling from core_country.list which displays the values from 'name' column.
users could select multiple values.
The requirement is to copy the selected values (countries) to a single line text field, separated by commas.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 09:53 AM - edited 04-05-2024 09:54 AM
@alberttagle Please follow the below steps to populate the values to the string field.
1. OnChange client script for list collector
2. Create and call the script include in client script,
3. Finally the result of cascading the values to string field.
Note: Kindly ignore the "Alerts" which I have used for testing it.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 08:31 PM
@alberttagle You have entered "GLideRecord" instead of "GlideRecord".
Script works fine and cascades other field values as well.
Make sure you enter them properly and add logs and test it to know where it fails.
For cascading other form variables, I have used a checkbox as an example below.
If the checkbox is "True",
If checkbox is "False",
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2024 01:53 PM
Thanks a lot! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 02:42 AM
Hi Dear,
I used same script as you mentioned above but it's not working for me, could you please validate and reply to me ASAP. Thanks.
1) Client script:
2) Script include:
3) Output:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 03:24 PM
Use a catalog client script to monitor field state changes and show or hide a message based on it. You will need to use JavaScript functions to access the field element and control its display on the page. Check the field ID when unlocking and hiding to correctly handle changes to its state.