Hi All,
I'm having an issue where a form does not sets the values in the target fields after a user resumes a form task from a "Save as Draft" option.
Steps involved:
User selects a contract id from the lookup list of values and populates Delivery Partner IRB and ContractURL lookup fields.
I've used the below Javascripts to set the values for Radio button "Delivery Partner Is IRB "and Html field "Finalised Business Case" on change.
$(document).ready(function(){ $('.proposallinklookup input').on('change',function(){ $('.proposallink input').val($(this).val()); var url = $(this).val(); $('.proposallink input').trigger('change'); var link = '<b>Finalised Business Case</b></p><p style="color:blue;"><a href="' + url +' "target="_blank">Click to open finalised Business Case</a>'; document.getElementById('mylink').innerHTML = link; }); }); $(document).ready(function () { $('.lookupIRB input').change( function() { $('.radioIRB input').val([$('.lookupIRB input').val()]); $('.radioIRB input').change(); }); });
This works perfectly fine if a user submits forms without choosing the option "Save as Draft".
But when a user resumes a task after selecting "Save as Draft" option, form does not update the target fields.
Could someone please help me to resolve this?
Thanks in advance