Link a dropdown field to dynamic pages..

I have a dropdown selection with static pages that is currently working fine with below code


import wixLocation from ‘wix-location’;
$w.onReady( function () {
$w(“#selectschool1”).options = [
{“label”: “Narbita Nursing College”, “value”: “https://www.narhbita.com.gh/College/admissions.html”},
{“label”: “enrollghana”, “value”: “https://www.enrollghana.com/headerbanner”},

];
});
export function selectschool1_change_1(event) {
let gotourl = $w(‘#selectschool1’).value;

}
I have created a dynamic page and I need help in redirecting my dropdown to the specific dynamic pages. the Dynamic page is linked to a dataset.

Any help will be much appreciated.

Hi,
You can get the second part of your URL in the database used for the dynamic item page.


Your URL will look something like: https://www.mysite.com/test-1/Test-row-4

Adding onto Aleks answer above, if you searched the forum as stated in the forum guidelines , you would find previous forum posts that would have helped you too.

https://www.wix.com/corvid/forum/community-discussion/how-can-i-link-a-dropdown-user-input-element-to-a-dynamic-page
https://www.wix.com/corvid/forum/community-discussion/linking-a-drop-down-panel-to-dynamic-item-page-per-selection

doesn’t help too complicated. im about to ask the same question

Please feel free to open your own post with your own good described issued situation, instead of bumping-up old posts. You can link this post for reference if needed.

Also → like mentioned already before…


… read the forum rules and guidelines, if you are new in this forum (it will help you to understand things better).