Does anyone know how can I make some fields that are just readOnly in grey colour so that it's extra clear that they cannot be edited?
Here can you find an example:
<form _cs="CompanySignatures (example)" created="2017-01-26 12:59:16.000Z" createdBy-id="12345"
entitySchema="xtk:form" img="xtk:form.png" label="CompanySignatures" lastModified="2025-03-11 15:17:58.000Z"
md5="EXAMPLEMD5HASH" modifiedBy-id="67890" name="companySignatures"
namespace="example" xtkschema="xtk:form">
<createdBy _cs="example@example.com (example@example.com)"/>
<container codepage="1252" colcount="2" label="">
<input readOnly="true" xpath="@internalCompanyNaturalKey"/>
<input readOnly="true" xpath="@internalCompanyCode"/>
<input readOnly="true" xpath="@internalCompanyBranchCode"/>
<input readOnly="true" xpath="@internalCompanyOfficialName"/>
<input xpath="@companyName"/>
<input xpath="@officeName"/>
<input xpath="@visitingAddress"/>
<input xpath="@visitingZipCode"/>
<input xpath="@visitingCity"/>
<input xpath="@postAddress"/>
<input xpath="@postZipCode"/>
<input xpath="@postCity"/>
<input xpath="@email"/>
<input xpath="@phone"/>
<input xpath="@fbUrl"/>
<input xpath="@ytUrl"/>
<input xpath="@inUrl"/>
<input xpath="@igUrl"/>
<input xpath="@wwwUrl"/>
<input xpath="@b2b_wwwUrl"/>
<input xpath="@logoUrl"/>
<input xpath="@orgNumber"/>
<input readOnly="true" xpath="@vanligaFragor"/>
<input readOnly="true" xpath="@kundservice"/>
<input readOnly="true" xpath="@senderAddress"/>
<input readOnly="true" xpath="@replyAddress"/>
<input readOnly="true" xpath="@senderName"/>
<input readOnly="true" xpath="@replyText"/>
</container>
</form>
解決済! 解決策の投稿を見る。
トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。
表示
返信
いいね!の合計
Hi @A_B_SE ,
Add a container and paste the below,
<container enabledIf="[/ignored/@triggerMessage]=1" type="enabledGroup">
<input xpath="@lastName"/>
</container>
Thanks Partha! Is there a way to just make the box grey and keep the label black?
表示
返信
いいね!の合計
@A_B_SE , by adding enabledIf="[/ignored/@triggerMessage]=1" type="enabledGroup" you can make the field text to grey (which will be different from other fields in input form) as per above screenshot. But to make complete text box as grey, you can try the Celia's comment.