# How to switch 'First Name' and 'Last Name' order on a sign up page

**URL:** <https://forums.knack.com/t/how-to-switch-first-name-and-last-name-order-on-a-sign-up-page/20552>\
**Category:** Get Answers\
**Created:** [September 1, 2026, 3:06am UTC](https://forums.knack.com/t/how-to-switch-first-name-and-last-name-order-on-a-sign-up-page/20552 "2026-09-01T03:06:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![StephenChapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/stephenchapman/32/1759_2.png) [@StephenChapman](https://forums.knack.com/u/StephenChapman)\
**Post date:** [September 1, 2026, 5:12am UTC](https://forums.knack.com/t/how-to-switch-first-name-and-last-name-order-on-a-sign-up-page/20552/2 "2026-09-01T05:12:28Z")

</div>

Hi @DavidK, in a similar structure to your [previous post](https://forums.knack.com/t/can-you-change-knack-next-gen-hard-coded-text-using-javascript/20548), you can target the inputs and move the last name input before the first when the view renders.

```auto
Knack.ready().then(async () => {

  Knack.on('view:render', async ({ viewKey }) => {

    const nameFieldKey = 'field_1';
    const first = document.querySelector(`.kn-input.${nameFieldKey} > .flex > .flex-col:first-child`);
    const last = document.querySelector(`.kn-input.${nameFieldKey} > .flex > .flex-col:nth-child(2)`);
    if (first && last) first.before(last);

  });

});

```

Regarding adding additional fields to the sign up page, navigate to the login page in the page tree and click on the Sign up link in the preview window.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/f/fd57a37af4dfe207cbca038e2586e4b172b1231e.png)

When you’re there, click Data Display on the right hand panel, and you can drag in any field within the Accounts table into your Sign up form.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/2/20f92789dbc0c5fb224e77bdba8e1ae27cf69a75.png)

---

_[View the full topic](https://forums.knack.com/t/how-to-switch-first-name-and-last-name-order-on-a-sign-up-page/20552)._
