Questions tagged [conditional]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
3k views

Visualforce: calling method as an action inside conditional statement

This is working code, saying that Telemarketing users are routed to a standard New Event page, while other users are redirected to MyPage: action="{!if($Profile.Name !='Telemarketing', urlFor($Page....
justasd's user avatar
  • 1,463
0 votes
1 answer
839 views

How can I Wrap an Apex:image with a condition inside a pageBlockTable Column?

I want to display different images inside this pageBlockTable Column based on the value of a field. I am receiving this error: You may specify either a ''value'' attribute or a body for the ...
user7167's user avatar
3 votes
1 answer
2k views

if condition in visualforce

I am new to salesforce, apex and vf so please bear with me. Below is my code: <script type="text/javascript"> function updateSplash(){ UpdateUser(); } </script> <apex:...
user3361920's user avatar
0 votes
1 answer
46 views

Need help with Outputlink format

This is in continuation of this question I asked earlier. I have a field carrier_website__c which contains URL starting from https, http and www. But Salesforce appends its own URL in front if the ...
MnZ's user avatar
  • 3,152
2 votes
2 answers
1k views

Hide Visualforce component based on field in account layout

On my account layout, one of the sections has a visualforce component in there that will only appear if another field on the account layout has a value in it. When there is no value it displays a HTTP ...
Blair Kristin's user avatar
1 vote
1 answer
58 views

Conditional Checkbox to change following field type

I have a requirement where by I would like to have a field type following a checkbox change to a Master-Detail Relationship if the checkbox is check. E.g Employee Visitor (tick as ...
Darrel's user avatar
  • 11
0 votes
2 answers
56 views

Which code is heavy when being executed

I'm comparing records based on their dates, if the date is equal to a particular month its data goes to a particular object. Example: If this the record is in the current month then it will be saved ...
rpm07's user avatar
  • 511
0 votes
1 answer
1k views

How to display 1 out of 2 possible fields values in same column : visual force

I have a column that needs to display date if there is no condition else display a combination of text+date if a criteria is met. I have to append a text Week Of to a date field if a custom field ...
MnZ's user avatar
  • 3,152
1 vote
2 answers
698 views

Appending text to Date field-Visualforce

I have to append a text PUNS to a date field (weird customer requirement!) if a custom field "Material Group" material_group__c in Object Order Line has certain values A, AB, C.. Since changing this ...
MnZ's user avatar
  • 3,152
2 votes
3 answers
4k views

Can I write a validation rule to make a field enabled or disabled based on picklist value?

Note: in standard page layout is it possible to write a validation rule to make a field enabled or disabled based on picklist value? i have a picklist - values cycle - monthly ...
user12024's user avatar
1 vote
2 answers
3k views

How to restrict a column to display value if value exists

I have a pageblocktable that is inside pageblocksection. The pageblocktable has many columns. I want 1 of the columns to appear only if it exist. Following is my code... <apex:...
MnZ's user avatar
  • 3,152
0 votes
0 answers
724 views

how to know if an enterprise connection is alive

I want to know if a connection is valid, this is an example of what I'm trying to do: EnterpriseConnection connection = new MyEnterpriseConnection(); System.out.println("first " + connection....
Aldo Escutia's user avatar
3 votes
1 answer
561 views

Need help understanding conditional statement syntax

Can anyone describe, what the colon and question mark syntax between the two methods is for? public PageReference initialize() { String profileId = ApexPages.currentPage().getParameters().get(...
daniel-h's user avatar
  • 342
0 votes
1 answer
52 views

Opportunity Conditional Automation

I'm really unsure how to go about the following validation rule based on a certain condition. My issue is, If Sole Proprietor is selected from the Win Reason drop-down, i.e. ISPICKVAL(Win Reason, "No ...
user3708392's user avatar
2 votes
2 answers
2k views

Multiple conditions in visualforce

I have the following code within my visualforce page, this ensures only users with the Portal profile can see the page, otherwise they are shown the SFDC page. <apex:page standardController="...
Deployment Failure's user avatar
0 votes
1 answer
378 views

Button to display different messages before proceeding

I have two buttons. Button1 and Button2. Clicking Button1 button will show an intermediate page for the user to proceed "Are you sure you want to Action1?" if(abc.checkFullAccess(Obj.OwnerId))...
MnZ's user avatar
  • 3,152

1 2 3
4