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
VinslikeuVinslikeu 

How to create a registration form and log-in form without using standard object and standard fields?

Im new in SFDC. Im trying to develop a login page and a Register User page without using any standard controller and standard object. trying to crate independent custom page which do not use any standard objects or standard fields. can anyone tell me how to develop these two pages?

mail me code @ admn.vinayurkude@gmail.com

thanks & Regards,

Vinay

Vinita_SFDCVinita_SFDC

Hi,

 

You can create a visulaforce page and make use of custom controller. For details please refer salesforce visual force guide:

 

http://www.salesforce.com/us/developer/docs/pages/

 

 

VinslikeuVinslikeu

Hi Vinaita,

Thanks for reply!

Actually already gone through this link but cant find solution for what i want to design.

 

if you have any available code which shows how to create custom visualforce page without using standerd controllers and standard fields that would be helpful for me..

 

once again thanks for your valuable time.. :-)

Vinita_SFDCVinita_SFDC

Hi,

Suppose you have a custom object named custObject(with custom fields product type, age) and you wish to create a VF for this custom object then you can create a custom controller and Vf as follows:

 

 

public class MyController {
private final custObject obj;
public MyController() {
account = [SELECT product_type, age FROM custObject
WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
public custObject getcustObject() {
return obj1;
}
public PageReference save() {
update obj1;
return null;
}
}

 

===================================

 

Visualforce :

 

<apex:page controller="myController" tabStyle="custObject">
<apex:form>
<apex:pageBlock title="Congratulations {!$User.FirstName}">
You belong to Product Name: <apex:inputField value="{!obj1.product_name}"/>
<apex:commandButton action="{!save}" value="save"/>
</apex:pageBlock>
</apex:form>
</apex:page>

 

===========================================================

 

If don't you wish to associate VF with any object, then don't include controller and design page as you wish. Ex:

 

<apex:page showheader="false" sidebar="false">
<style>
h1
{
text-align:center;
color:blue;
}
</style>
<apex:form >
<marquee> <h1>
This is my first VisualForce Page! </h1>
</marquee>
<h1> This text is displayed without INLINE styles </h1>   
</apex:form>
</apex:page>