ViralSports Posted December 3, 2015 Report Share Posted December 3, 2015 I am attempting to create a simple messaging field for users in my app so they can communicate with each other. I create two virtual fields. 1 field gets the users ID from an authentication parameter. The other Virtual field is used to capture the message. I am using a script to concatenate the User ID and message and inserting into a text area. For the script below, if Testc is set up in the table as a text field and used in a Single Record Update form then the concatenation works and displays in the TestC field. However, if you use this in a Detail page it does not. Also, this does not work in either form type if Testc is an Text Area in the table. Does anyone know what is wrong with this approach? Assuming there is a way to insert into a Text area in a detail datapage, does anyone know how to force a carriage return so the messages appear on a new line in the text area. <script> function test(){ var position1 = document.getElementById("cbParamVirtual1").value; var position2 = document.getElementById("cbParamVirtual2").value; var allpositions = position1 + ' ' + position2; document.getElementById("EditRecordTestc").value = allpositions; } document.getElementById("caspioform").onchange=test; </script> Quote Link to comment Share on other sites More sharing options...
Xiang Posted December 5, 2015 Report Share Posted December 5, 2015 Hi ViralSports, The Testc field should be editable and the "rich text editing toolbar" checkbox on the Advanced tab should be unchecked. I have copied-and-pasted your code, it works on my page. Have a nice day! 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.