Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hi
Please try out this app (APP_form_pull_data_from_table.jwa) demonstrating how to pull text template from a list of setup text template (or data from another database table) using a select box and Ajax subform.
Steps to run the program:
How it works:
<script> $(document).ready( function(){ var ajaxValue = FormUtil.getValue('Description'); var copydesc = FormUtil.getField('CopiedDescription'); if (ajaxValue === '') { $(copydesc).val(''); } else { $(copydesc).val(ajaxValue); } }); </script>
Hope the above meets your use case.
References: Javascript API
Hi, you can use Bean Shell Programming Guide#UseasFormMultiRowLoadBinder to customize your load binder retrieved data. If you are using spreadsheet element, there is a formula "FORMDATA(formDefId, primaryKey, fieldName)" can help you to load data too.
Thank you sir for your reply... It will be great if sample application can be shared...requirement is need to populate one specific field value from different table form to another table form