FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to add/alter attributes of a 'Advanced Registration Form' form field

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    480
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jitendra.sabat
      last edited by

      In order to add custom fields in a form in FusionAuth 'Advanced Registration Form', we have enabled Self service registration in the application , with type as advanced and selected a custom form.
      On doing this , a piece of code is added in the 'Oauth Registration' section FTL. Attaching a snippet of the code for your reference
      Screen Shot 2022-05-24 at 5.24.50 PM.png The corresponding view in registration form can be like following
      Screen Shot 2022-05-24 at 5.27.13 PM.png In above form as all the custom fields are rendered from a list we are losing flexibility to cutomize the field level attributes. For example 'placeholder', i want to have a different placeholder than 'registration.data.customdata'. Also there are other properties like id,class,name etc. How to achieve the same using a custom field(Thats not there by default from FusionAuth) and in Advanced Registration Form?

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @jitendra.sabat
        last edited by

        @jitendra-sabat

        Hiya,

        You can add keys to the messages.properties file. Here's a blog post that illustrates this: https://fusionauth.io/blog/2020/09/01/theme-registration-form

        In that post, the registration.data.minprice field is one of the custom fields.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post