Jump to content

Concatenate In Detail Page With Text Area


Recommended Posts

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>
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...