Jump to content
  • 0

Cascading dropdown display wrong value in update/details


ppbb123

Question

I see the value of the cascading dropdown is based on the previous dropdown in update/details form. But when the user select the original option from the parent dropdown, the cascading dropdown should have their initial options selected.

Thanks.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The cascading value is based on the selection which is conflict to the original value.

You can try the following code in the Footer of your DataPage:

<script>
function getCascading() {

var new_item = document.createElement("option");

// real value and display value in cascading dropdown,  use insert button to insert the correct FieldName
new_item.text="[@field:FieldName]"; 
new_item.value="[@field:FieldName]";

// Add new item to the listbox
 try 
{
document.getElementsByName("EditRecordarea")[0].options.add(new_item, null); 
}
catch(ex) 
{
document.getElementsByName("EditRecordarea")[0].options.add(new_item);
}
}

window.onload = getCascading; 

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