---
title: "Fluid: Sprungmarke in Form"
url: "https://www.typo3.net/d/107879-fluid-sprungmarke-in-form"
source: "typo3.net"
tags: ["Extensions","Extbase","Fluid","Frage","ViewHelper"]
created: "2011-10-21"
last_reply: "2012-03-12"
replies: 7
solved: false
page: 1
pages: 1
lang: "de"
---

# Fluid: Sprungmarke in Form

Extensions › Extbase · 7 Antworten · gestartet 2011-10-21

## Eröffnungsbeitrag

**BFSven** · 2011-10-21 · [Beitrag #1](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/1)

Hallo,
kann sein, dass ich jetzt blind bin, aber kann mir einer sagen, wie ich in einer Form (<f:form action="..">) eine Sprungmarke auf der Zielseite anspringe? Grund ist, dass das Formular auf der Seite unter dem Inhalt ist und der Besucher, z.B. bei Fehlern, ja gleich wieder zum Formular springen soll.

Danke und Gruß,
Sven

## Antworten

### [#2](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/2) · freshman17 · 2011-10-21

Kannst du ein kurzes Beispiel in normalen HTML geben sprich wie das Resultat aussehen soll?

### [#3](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/3) · BFSven · 2011-10-24

Hallo Freshman,

es sollte dann ungefähr so aussehen:

```html
<form method="post" action="http://de.selfhtml.org/html/referenz/attribute.htm#a" name="callBackForm">...</form>
```

Funktioniert ja soweit, nun hab ich aber das Problem das in Fluid zu definieren.

### [#4](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/4) · jank · 2011-10-24

Du könntest das in der action machen mit

```php
$this->redirectToURI($uri)
//und
$this->uriBuilder
```

### [#5](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/5) · freshman17 · 2011-10-24

mit Fluid gehts auch:

```html
<f:form actionUri="{f:uri.action(action: 'list')}#blub">..</f:form>
```

### [#6](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/6) · BFSven · 2011-10-24

Danke Euch, jetzt bekomme ich den Fehler

```html
Oops, an error occured! Request hash (HMAC) checking failed. The parameter __hmac was invalid or not set, and objects were modified.
```

aber das hängt wohl mit RealUrl zusammen

### [#7](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/7) · jank · 2011-10-24

Das Problem mit RealURL habe ich auch... das liegt anscheinend an der Einstellung 'noMatch' => 'bypass'...

### [#8](https://www.typo3.net/d/107879-fluid-sprungmarke-in-form/8) · BFSven · 2012-03-12

es geht doch mit Fluid:

```html
<f:form action="submit" section="aContactForm" />
```

---

Quelle: „Fluid: Sprungmarke in Form“, typo3.net, https://www.typo3.net/d/107879-fluid-sprungmarke-in-form
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
