Jump to content
  • 0

How can I update a text field that is hidden triggered by a rule?


Question

1 answer to this question

Recommended Posts

  • 0

Hi NeoInJS,

In your details page, let's say you have the following fields:

  • Textbox1
    • Set as form element: Hidden
  • Virtual1
    • Set as form element: Checkbox
  • Virtual2 
    • Go to Advanced External Associations and Defaults > Set On load to receive value or parameter: Data Source Fields | Textbox1

Rules

|---------------------|----------------------|
| CRITERIA            | ACTIONS              |
|---------------------|----------------------|
| Virtual1 is checked | Make Virtual2 hidden |
|---------------------|----------------------|

Create a Header/Footer and insert the code below in the Footer

<script>

// This will copy the value you enter in Virtual2 to Textbox1
document.getElementById('cbParamVirtual2').onkeyup= function(){
 var x = document.getElementById('cbParamVirtual2').value;
 document.getElementById('EditRecordTextbox1').value = x;
};

</script>

 

Link to post
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...