cancel
Showing results for 
Search instead for 
Did you mean: 

Custom task-details form look

tobix10
Champ on-the-rise
Champ on-the-rise
Hello, I've been searching a lot, but couldn't find how the form component in view mode is rendered. I want this page to look like task-edit, but with all fields as read-only.
It is possible to do? Where are default templates for edit and view forms?

If I duplicate show fields in field-visibility(form config file) one for view and another for edit it will work?
I don't know but it seems to me that view mode bypass my form config file. It shows everyting like:
<blockquote>
    property: value
</blockquote>
. This is not what I want. For example on the edit form I also have datatable and I want to see it with filled rows instead of some hashes representing saved nodes.

Thanks in advance.
2 REPLIES 2

santoshbaradwaj
Champ in-the-making
Champ in-the-making
In form config file you need to add for-mode="view" attribute.
like below
                           <form>
            <field-visibility>
               <show id="dl:itemId" />
               <show id="dl:taskType" />
               <show id="dl:taskRefId" />
               <show id="cm:title" />
               <show id="cm:description" />
               <show id="dl:startDate" />
               <show id="dl:endDate" />
               <show id="dl:hours" />
               <show id="dlSmiley TongueercentComplete" />
               <show id="dl:taskAssignee" />
               <show id="dl:taskPriority" />
               <show id="dl:taskStatus" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />
               <show id="cm:attachments" />
               <show id="cm:versionable" for-mode="view" />
                    <show id="fm:discussable" force="true" />
            </field-visibility>
                              </form>

tobix10
Champ on-the-rise
Champ on-the-rise
Datatable doesn't show up ;/. It is a custom control template and rows are saved in document attached to a workflow, but I think it doesn't matter.

I would like to know where is default template for details page, because I want to present some tasks to different users(not owners). They will have access only to 'show task page'. Currently they have different look that owner of the task. They see many more properties of the task, what I want to change.

//edit
Ok, I got datatable to work, but the second problem remains.