- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 02:44 AM
Hi all,
Self Service Portal Helsinki : g_form.setValue('field', getMessage'message') not working the first time page loads. But when I open again the record producer form still from the portal, the message shows up.
Any idea what the issue could be?
Regs,
Lô Mouhamadou
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 04:23 AM
Sorry for more bad news. I found the issue in Helsinki Patch 2, so upgrading to that release won't be your answer (yet). The function only prints the key and does not fetch the message from the server (even if you use the Messages field.) So sad.
I know it's not the answer you were looking for, but if you would be so kind... please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this discussion from your "inbox", use the "mark as correct" option under actions. If you are viewing it directly from the thread use the Correct Answer link (red with a star).
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 03:59 AM
Hi Lo,
You may want to check that syntax. It should be...
g_form.setValue('field', getMessage('message'))
This one affected me personally also... I ran in to it a couple weeks ago.
There is a known issue with this. It is supposed to work asynchronously (using a callback method as the second arg to getMessage()), but there is a known bug. Sorry, I don't have a PRB at the moment, nor a potential release date/version/patch. All I can tell you is that the developers are aware of it and have it on the list of bugs to fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 04:17 AM
Thanks Chuck,
Muy syntax is right g_form.setValue('field', getMessage('message')).
I tried also to store the message in a variable but the same.
var msg = getMessage('declaration_child_submission_info'); |
g_form.setValue('submit_txt',msg);
I will try to find the problem related to it.
I am also applying the Helsinki patch 2 this coming thursday so hope it will help.
Ps: I am using a PDG generator button and also Add attachment button on record producer. That works fine with the old cms portal but with the new Self service portal the it is not working. Do you have any simple or even difficult solution to solved this. The PDF button is a UI PAGE.
For the attachment, we found out a way.
How would you do to get the pdf button working on the new self service portal ?
See my other posts for more details

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 04:23 AM
Sorry for more bad news. I found the issue in Helsinki Patch 2, so upgrading to that release won't be your answer (yet). The function only prints the key and does not fetch the message from the server (even if you use the Messages field.) So sad.
I know it's not the answer you were looking for, but if you would be so kind... please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this discussion from your "inbox", use the "mark as correct" option under actions. If you are viewing it directly from the thread use the Correct Answer link (red with a star).
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 04:28 AM
Oh too bad.
But I am wondering if there is an alternative way to fix it.
so, when we called the message try to do something in backgroung with it then set the value.