Jump to content
  • 0

Concatenation problem with text fields as checkboxes


bJamble

Question

I hope someone can help.

I am trying to concatenate several text fields together (WMA1, WMA2, WMA3) into another field (WMA). The text field are in my submission data page as checkboxes with text when the checkboxes are checked.

I have copied the concatenation JavaScript from the tutorial and I am having a problem. I am currently experimenting with only two of the fields. The purpose is to have multiple checkboxes but when the user selects on of the boxes, the others become disabled. Then i need to get the text value of the selected text box into another text field that will be used to search later. When I hit submit, the destination text box has the value of the selected checkbox, but it concatenates with the other text value of the other checkbox that isn't checked.

It is puzzling me and I can't get it figured out.

Please help the newbie.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Just an update: You could use the Calculated Values on this one. Calculated Value form element generates dynamic calculations that automatically update as users interact with your form. Similar to Formula Fields and Calculated Fields, you can construct the calculation using functions, logic, constants, values from other fields and SQL expressions that you can use for your Total: https://howto.caspio.com/datapages/datapage-components/calculated-values/

OR 

Try to use Formula Field instead: https://howto.caspio.com/tables-and-views/data-types/formula-fields/

I hope it helps!

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
Answer this question...

×   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...