You need to sign in to do that
Don't have an account?

"The dependent picklist requires its controlling field to be present on the page " with both fields included within a Visual Force component
Help:
I am getting this error but not sure why because of these steps:
1) Create a component in order to add a plugin for Address Verification called Smarty Streets
2) The component includes both Address fields for Billing/SHipping as well as Crtedit Card Payment fields
3) Among those fields listed within the component, I have included both the controlling picklist (Payment Method) and its dependent picklist (Card Type)
4) Add the component to the main page.
5) Make sure that e both fields mentioned in step 3 have Read/Write access and are visiable.
6) Bring up the Apex Page
7) Verify that this error occurs.
Why am I getting this error if I am including both those fields?
Thanks
I am getting this error but not sure why because of these steps:
1) Create a component in order to add a plugin for Address Verification called Smarty Streets
2) The component includes both Address fields for Billing/SHipping as well as Crtedit Card Payment fields
3) Among those fields listed within the component, I have included both the controlling picklist (Payment Method) and its dependent picklist (Card Type)
4) Add the component to the main page.
5) Make sure that e both fields mentioned in step 3 have Read/Write access and are visiable.
6) Bring up the Apex Page
7) Verify that this error occurs.
Why am I getting this error if I am including both those fields?
Thanks
I had to remove the DIV tags for the Credit card / Payment Billing info from th VF Component and place it in the main VF page. Thus the component only has to contain the Address Verification segment. This block of DIVs include both the controlling field (Payment Type) and the dependent picklist (Credit Type). So when the main VF Page is loaded it sees the two fields loaded on this page and so no longer throws and error while waiting for the component to load.
All Answers
- I am wrapping the component fields inside HTML, Header, and Script tags in order for Smarty Streets to activate the autocomplete lookup
- I have added the <apex form> using DIV Tag elkements for the input fields. Card Type and its controlling field - Payment Method - are both included in this form. (I have underliined the input field fpr Payment Method and Card Type below.
Why is the page not recognizing that the controlling field Payment Method is not included on the page for the dependent Card Type ?I had to remove the DIV tags for the Credit card / Payment Billing info from th VF Component and place it in the main VF page. Thus the component only has to contain the Address Verification segment. This block of DIVs include both the controlling field (Payment Type) and the dependent picklist (Credit Type). So when the main VF Page is loaded it sees the two fields loaded on this page and so no longer throws and error while waiting for the component to load.