【Visualforce】日付型のinputFieldで、現在日の設定リンクを無くす方法
Visualforceページ開発で、これを表示しなくする方法です。

cssにこう書いてあげれば良いです。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<!-- VFページ --> <apex:page standardController="Sample__c" extensions="SamplePageController" > <html> <head> <style type="text/css"> span.dateFormat {display: none;} </style> </head> <body> <apex:pageBlock title="サンプル" > <apex:form > <apex:pageBlockSection title="入力フォーム"> <apex:outputField value="{!sample.Name}"/> <apex:outputField value="{!sample.CancelState__c}"/> <apex:inputField value="{!sample.CancelDate__c}"/> <apex:inputField value="{!sample.CancelKbn__c}"/> <apex:inputField value="{!sample.CancenReason__c}"/> </apex:pageBlockSection> </apex:form> </apex:pageBlock> </body> </html> </apex:page> |
このとおり消えます。
