• Pegazys
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies

The required attribute for apex:InputField is set to true or false.

 

I want it to be set to true or false based on the value entered for another field

 

Can this be controlled using Javascript or thru the Controller Method?

 

 

Here is portion of my code,

 

        userId = Userinfo.getUserId();

 

        email.setTargetObjectId(userId);
        email.setBccSender(true);
        email.setSaveAsActivity(true);
        email.setUseSignature(false);
        email.setSubject(subject);
        email.setToAddresses(sendToAddresses);
        email.setPlainTextBody(body);

 

Everything works fine when I set setSaveAsActivity to false. But I want to save it as an Activity when email is sent.

When I set setSaveAsActivity to true, I get the error, INVALID_SAVE_AS_ACTIVITY_FLAG, saveAsActivity must be false when sending mail to users

 

Does this have anything to do with which Id I am using to set in setTargetObjectId?

 

Can any of you help with this?

Is it possible to directly access the Email field in the User Object in a Visual Force Page?

 

If we have to get in thru the Controller, is there a standard query for it ?

 

Pls. help

 

Thanks

I have a requirement where I have 2 Multi-Select picklists.

 

PickList A and PickList B

 

The values that are deselected from PickList A needs to be populated to the Selected values in PickList B.

 

I am exploring the following 2 options,

 

1. Dependant PickLists

2. Create a Visual Force page and use Javascript - I am not sure how to access the deselected values.

 

Any help is appreciated.

 

Thanks

Is it possible to directly access the Email field in the User Object in a Visual Force Page?

 

If we have to get in thru the Controller, is there a standard query for it ?

 

Pls. help

 

Thanks

I have a requirement where I have 2 Multi-Select picklists.

 

PickList A and PickList B

 

The values that are deselected from PickList A needs to be populated to the Selected values in PickList B.

 

I am exploring the following 2 options,

 

1. Dependant PickLists

2. Create a Visual Force page and use Javascript - I am not sure how to access the deselected values.

 

Any help is appreciated.

 

Thanks