Jump to content
  • 0

submission forms


amsanc02

Question

We have a submission form with a field where we need two options for entries. 1st option needs to be a text field, and the 2nd a radio button with a set entry. If the radio button is chosen it needs to disable the text field and store it's value in place of the text field entry. If the choice was the radio button, the resulting table shows a black entry. We don't want a blank entry, but the per-entered button for the radio button.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello,

You need to add this java script in the footer of the page.

function f_getvalue(){

if (document.getElementById('cbParamVirtual11').value == 'Yes'){

document.getElementById('InsertRecordProcess_Title').value=document.getElementById('cbParamVirtual11').value;

}

}

document.getElementById("caspioform").onsubmit=f_getvalue;

This script will see if the value of the checkbox is Yes, then it will assign this value to "Process_Title" text field. These IDs in the code is related to your DataPage we were talking about earlier. If any one else using this code, they might need to replace the IDs with the real IDs. :wink: :wink: :wink:

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