Update single line field content if user changed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2024 01:17 AM
Hi!
Currently i have catalog item, which has some fields and one of them is reading logged in user info like mobile phone number and adds it in one of single line text fields.
User field is ordering_for and field where phone number is displayed is called 'mobile_phone_number' and in it has Default Value with following: javascript:gs.getUser().getRecord().getValue('mobile_phone');
which basically reads mobile_phone from table.
The problem is now, if i change user in ordering_for, it still shows in phone number field logged in user number(since it has getUser) not the one in ordering_for.
Should I remove completely default value and write some on change script or i can add some additional function in Default value? And if I can update Default value, what should be there added?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 12:31 AM
ok, I clearly missed the part you mentioned before about if im not using Requested for 😄
But looks like this wont work for me since I have that mobile_phone variable in variable set and the ordering for outside variable set. So the Dependent question is empty in mobile phone variable for me.
I guess , i need to go this time with the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 12:25 PM
No worries, why not add the 'requested_for' in your variable set?
Or you can go with the script as you mentioned.