Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
formAPI
Irene
for a select box after changing the item a confirmation box is displayed to confirm about the change.If the user doesnt want to change, how to set the old value back using formAPI.?
Find more posts tagged with
Comments
cliffhanger
When you initialize the template save the select-box selection in some variable. When the selection is changed and the users hits cancel in the confirmation box, set the select box item value to the saved selection. If the user hits "OK" on the confirmation, make sure you save this new selection in that variable.
Migrateduser
Not only that, but use the .selected = true property in Javascript so that the previous value is visually selected, as well.
Dave
Current Environment(s):
(1) TS 6.5 on Solaris 9
(2) TS 6.1 SP1 on W2K3
(3) TS 6.1 on W2K
Irene
What u said will work out if everytime the user opens the DCR to edit. WHat if the user opens, selects one item saves it and without closing changes the selected item??
In TS 6.5( formAPI ) they have mentioned that along with Itemchange there is a property called oldValue. Has anyone tried this ?
jbonifaci
Irene, as he mentioned you would need to update the saved values after the user confirmed their selection.