This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

dsb.saul18720
dsb.saul18720

Hello everyone here, im learning how octobercms works and its amazing, a great way to develop laravel apps. But currently I'm facing some issues i'm a newbie in this world, if anyone here can help me will be great.

I want to know how can I make a select form component to redirect on selection to another page with an slug in the url, and then in that page fill a text form component with the slug data.

I'm really trying to pass the State from the location plugin to another page, and in that page fill the state form field with the previous selected state.

I know that came here and ask for code solutions it's nothe the way but I have been several days trying to accomplish this, I know for the more experienced here should be a pice of cake. so if anyone here can help me It will great.

Thank you so much in advanced I will be following the post, kind regards.

dsb.saul18720
dsb.saul18720

By the way i have the following code in my partial it's currently showing the select dropdown with the states i had enabled in location component.


[viewBag]
==
{% set countryId = 180 %}
{% set stateId = stateId|default(form_value('state_id')) %}

<div class="form-group">
    <label for="accountState"><h3>Procura tu cidade</h3></label>
    {{ form_select_state('state_id', countryId, stateId, {
    id: 'accountState',
    class: 'form-control',
    emptyOption: '-- Concelhos --'
    }) }}
</div>

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.