DesiLogi Posted July 15, 2016 Report Share Posted July 15, 2016 I'm trying to figure out how to use a concatenate function that works in a submission form for a tabular inline insert. I believe Ajax has to be disabled for this (I did that). I have the below in a custom.js file accessible by the page the datapage is hosted in: //concate for the simple combination field function f_secondcombination(part1, part2, comb){ $("[name='"+comb+"']").val($("[name='"+part1+"']").val()+"_"+$("[name='"+part2+"']").val()); } In the datapage itself I'm using, in the header: <div id="cb_sup"> In the footer of the datapage: </div> <script> $("#cb_sup form”).click(function(){ f_secondcombination('InsertEditRecordCompanyID', 'InsertEditRecordArea', 'InsertEditRecordCompanyID_Area'); }); $(document).ready(function(){ var v_errmes = "This Area already exists for this Company. Please provide a different one."; f_modify_err_message("cb_value_present", "cb_not_valid_info",v_errmes); }); </script> When the user adds a new record (in inline insert) it should combine the 'CompanyID' field with the 'Area' field and put that in 'CompanyID_Area' (which will be a unique field in the table so duplicates can be checked). I can't get this to work- if someone can please help troubleshoot this I'd very much appreciate it. Quote Link to comment Share on other sites More sharing options...
aam82 Posted August 12, 2016 Report Share Posted August 12, 2016 Where on your datapage are you calling your custom.js? Your script requires jQuery as well... Can you use inline javascript instead of an external file? The Caspio article on this is good: Quote Link to comment Share on other sites More sharing options...
Kurumi Posted June 24, 2019 Report Share Posted June 24, 2019 You can try to check this post for new updates: I hope it helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.