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

ryanpotter_917433
ryanpotter_917433

Hi all,

I've viewed this part of the documentation: https://octobercms.com/docs/services/html and so I want to easily build up html forms on my pages.

I copied this part of the code on my page to get it working:

<?= Form::open(['url' => 'foo/bar']) ?> // <?= Form::close() ?>

Except it just doesnt render properly. Am I doing something wrong or is the guide out of date?

I just want so I can keep creating loads of textboxes using this code also:

<?= Form::text('username') ?>

Kind Regards,

Ryan

Eoler
Eoler

ryanpotter_917433 said: so I want to easily build up html forms on my pages.

If "my pages" refers to frontend, you should use Twig calls from the docs:

{{ form_open(...) }}

https://octobercms.com/docs/markup/function-form

1-2 of 2

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