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
Saniya Khan 2Saniya Khan 2 

How to hide/show command button

Hi All,
I am working on vf page it have two command button

                              <apex:commandButton value="Add Row" action="{!addBackgroundRows}"  rerender="backgroundtable3" id="ShowAllTheFields"  >
                                   <apex:param name="addCount" value="1" assignTo="{!addCount}"/></apex:commandButton>
                             <apex:commandButton value="Add Row" action="{!addBackgroundRows}" rerender="backgroundcomment2" id="ShowsingleField"  >
                                  <apex:param name="addCount" value="1" assignTo="{!addCount}"/></apex:commandButton>

Want to make second button diabled instially and first button visible but after clicking first button want to hide first button permanantly abd dispay second button only.

It will be greate if anyone help me with this.

Many thanks,
Check this:

Hey, is there a way i can globaly search apex code on my domain with a method from a controller?
example: i want to find the string 'Form__c' in code for all classes using my method Find(String string)
I have seen answers like a keyboard shortcut to manualy find, but i want to make it an automated process in the method.
S ( App Download (|Tutuapp pro (| Savetubes (|Franklyn (