• Devayani Avadhani Uppu
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies
How to identify if a reset password link is expired in communities and redirect customers to a custom page if clicked the link which is expired?

Any help is appreciated!
Thanks,
​Devayani.
Hi All,
I have a requirement where, the Communities Registration page has fields for entering Registration information and also Account information,
-View Application Profile creation page as Guest
-Fillout the form for registration as well as inserting Account information as a Guest.
-On clicking ‘Continue’ to submit the button, page should redirect to Profile overview page
  --Here upon clicking ‘Continue’  in the background controller, sequence of steps are:
     ---Create External user
     ---Login External User
     ---Capture Account info
     ---Save captured account info to database with Logged in User as owner.
Fillout the form as guest, but save data as registered user?
How to achieve this scenario?
For now my controller is calling resisteruser action method from command button where user is registered and redirected to required page.

Any help is much appreciated!
Thanks,
Devayani.
 
Hi All,
I am trying to display a picklist using apex on the Visualforce page with elements apex:selectlist/apex:selectOption, but the html passthrough attribute for place holder doesnt seemed to be working. Below is my code for reference. 
<apex:selectList id="businessType" size="1" value="{!businessType}" html-placeholder="Select business type">
     <apex:selectOptions value="{!businessTypes}" />
 </apex:selectList>
code in controller:
 public List<SelectOption> businessTypes {
        get {
            if (businessTypes == null) {
                businessTypes = getbusinessTypes();
            }
            return businessTypes;
        }
        private set;
    }
    private List<SelectOption> getbusinessTypes() {
        List<SelectOption> optionList = new List<SelectOption>();
        
        try {
            Map<String, Schema.Sobjectfield> corpAppFields = Schema.SObjectType.FXIP_OLAF__c.fields.getMap();
            Schema.DescribeFieldResult describe = corpAppFields.get('Business_Entity_Type__c').getDescribe();
            List<Schema.PicklistEntry> options = describe.getPicklistValues();
            for (Schema.PicklistEntry option : options) {
                optionList.add(new selectOption(option.getValue(), option.getLabel()));
            }           
                      
        }
        catch(Exception ex) {
            System.debug('Unable to load Business Types');
            throw ex;
        }
        return optionList;
    }

 
Hi All,
I am trying to display a picklist using apex on the Visualforce page with elements apex:selectlist/apex:selectOption, but the html passthrough attribute for place holder doesnt seemed to be working. Below is my code for reference. 
<apex:selectList id="businessType" size="1" value="{!businessType}" html-placeholder="Select business type">
     <apex:selectOptions value="{!businessTypes}" />
 </apex:selectList>
code in controller:
 public List<SelectOption> businessTypes {
        get {
            if (businessTypes == null) {
                businessTypes = getbusinessTypes();
            }
            return businessTypes;
        }
        private set;
    }
    private List<SelectOption> getbusinessTypes() {
        List<SelectOption> optionList = new List<SelectOption>();
        
        try {
            Map<String, Schema.Sobjectfield> corpAppFields = Schema.SObjectType.FXIP_OLAF__c.fields.getMap();
            Schema.DescribeFieldResult describe = corpAppFields.get('Business_Entity_Type__c').getDescribe();
            List<Schema.PicklistEntry> options = describe.getPicklistValues();
            for (Schema.PicklistEntry option : options) {
                optionList.add(new selectOption(option.getValue(), option.getLabel()));
            }           
                      
        }
        catch(Exception ex) {
            System.debug('Unable to load Business Types');
            throw ex;
        }
        return optionList;
    }

 
Hi All,

In out project we are trying to change password from site VF page. In our case we are calling Site.changePassword() method through @RemoteAction. since the site page do not have any apex tags.(it only contains HTML/AngularJS frame work)
Site.changePassword() method is always returning Null instead of returning page reference.

This whole activity is been done in Developer Sandbox environment & not in actual production.

Kindly help with this issue.

Thanks in advance..
Amar