C
|
cgphp 10/17/2012 |
Post your code. |
I
|
igiacchi author 10/17/2012 |
Post your code.
|
C
|
cgphp 10/17/2012 |
Enter the following code in the "Javascript onload" event: $('input#value_filename_1').bind("DOMSubtreeModified",function() { |
I
|
igiacchi author 10/17/2012 |
Hi Cristian, wellcome! I'm tring to fill on the fly my txt control serialnumber using the data from the first control filename that I have in the same page. filename is a control to insert an image into a table field and serial is a part of filename with add "0000" This is into OnLoad event Add page. var ctrlFN = Runner.getControl(pageid,'filename'); var ctrlSN = Runner.getControl(pageid,'serialnumber'); function serial() { serial = ctrlFN.getValue(); var createSN = serial.replace(/_.jpg/,""); ctrlSN.setValue(createSN + "0000"); } ctrlFN.on('change', serial); ctrlFN.on('keyup', serial); In alternative can I use a snipped code with a button to generate my serial ?
|
C
|
cgphp 10/17/2012 |
My code is a solution if you are using the new multi upload feature when the "Compatibility mode" option is not checked. |