function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mukesh guptamukesh gupta 

custom signup form

Hi Expert,

I am creating Custom signup form   from this  url "https://github.com/salesforceidentity/basic-custom-login"  but i am not getting what is "fieldpath" and "dbrequired". if these are registration form field then what field type i need to create.


 
<apex:repeat value="{!$ObjectType.User.FieldSets.Registration}" var="f">  
           <div class="form-group">
               <div class="col-md-4"></div>
               <div class="col-md-4">
                   <apex:inputField value="{!User[f]}" styleClass="form-control reg_{!f.fieldpath}"  onfocus="$('#req_{!f.fieldpath}').fadeIn();"/> 
                </div>
                <div class="col-md-4"><apex:outputText rendered="{!f.dbrequired}"><span id="req_{!f.fieldpath}" style="display:none;color:red;">required</span></apex:outputText></div>
            </div>
            </apex:repeat>

Thanks
Mukesh
Best Answer chosen by mukesh gupta
Amit Singh 1Amit Singh 1
Hello Mukesh,
DBRequired -  Indicates whether the field is required for the object
FieldPath - Lists the field’s spanning info

Refer below link for more info.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_field_sets.htm

Let me know if this helps:)

Thanks!
Amit Singh