Skip to main content

Hi,

 

I have a scenaria where in I am updating the value of the datalabel using custom javascript , I can see the updated data on the form but when I am trying to pass this data to my smartobject ,its still considering the old value of the data label.

 

So is there any way in which we can tell k2 to take the updated data which is there on the form. or is there any other control to which If I passes the data then it will recognise it.

 

I have tried with text box also but  that also didn't worked.

 

Any suggession/workaround is welcome.

 

Thanks,

Divya Raj

Can you share the javascript you are using to update the data label?  If you are setting the value property it should work.


Hi Guys,

 

If this is still open for discussion?

 

I am able to bring data on a textbox but that is more like a "Watermark" then actual data. If i want to use this data K2 is unable to fetch it.

I tried many combinations of Jquery and JavaScript, still none worked.

 

Line used: $('inputnname="txt_FName"]').val("Vermaniac"); where "txt_FName" is name of my text box and i want to show "Vermaniac" on it and later use this data.

 

Any help is appreciated. 

 

 

 


Please try with:


 


$("[name='txt_FName']").SFCLabel('option', 'text', 'Vermaniac');


Reply