最近の検索


最近の検索はありません

Ahlam Kern's Avatar

Ahlam Kern

参加日2021年10月16日

·

前回のアクティビティ2023年12月28日

フォロー中

0

フォロワー

0

合計アクティビティ

14

投票

5

受信登録

5

アクティビティの概要

さんの最近のアクティビティ Ahlam Kern

Ahlam Kernさんがコメントを作成しました:

コメントTicket customization

Hello, I have a scenario where I couldn't get an answer about.

Scenario : The end user is connected on the help center and wants to submit a new request. There's a field where he must enter his contract number each time he submits a request.

Problem : How can we automatically fill the "Contract number" field for each request by an end user ( We can only get the information about the "Contract number" ticket field on the new page request from a user field called "CO" on our domain).

Thank you !

コメントを表示 · 投稿日時:2022年4月21日 · Ahlam Kern

0

フォロワー

1

投票

0

コメント


Ahlam Kernさんがコメントを作成しました:

コミュニティのコメント Feedback - Help Center (Guide)

Hi Christopher, 

Thank you for your answer, it actually worked and that was exactly what I was looking for. Besides, there's this condition I want to put in the exact same code, I will explain below :

As you can see, in this code I put the condition : If the variable "value" is ">=" to the constant "date0".

However I actually want the "date0" to be a dynamic value and so, to put a condition where only values >= 6 months of creation (based on the last "Created at" column) to show on the list.

I put here the whole code : 








{{t 'my_requests'}}




{{#form 'requests_filter' class='requests-table-toolbar'}}


{{#if help_center.multiple_organizations_enabled}}

{{label 'organization' for='request-organization-select' class='request-filter request-filter-label'}}
{{select 'organization' id='request-organization-select' class='request-filter'}}

{{/if}}


{{subscribe}}


{{label 'status' for='request-status-select' class='request-filter request-filter-label'}}
{{select 'status' id='request-status-select' class='request-filter'}}

{{/form}}

{{#if query}}


{{else}}
{{#unless requests}}

{{t 'no_requests'}}


{{/unless}}
{{/if}}


{{#if requests}}












{{#each requests}}







{{/each}}

{{t 'subject'}}{{t 'id'}}{{#link 'requests' sort_by='updated_at'}}{{t 'last_activity'}}{{/link}}
{{t 'status'}}
{{#link 'requests' sort_by='Created_at'}}{{t 'created_at'}}Created at{{/link}}


{{#if subject}}
{{subject}}
{{else}}
{{excerpt description characters=50}}
{{/if}}






{{status_name}}


#{{id}} {{date updated_at timeago=true}}

{{status_name}}





{{/if}}

{{pagination}}

コメントを表示 · 投稿日時:2021年12月22日 · Ahlam Kern

0

フォロワー

0

投票

0

コメント


Ahlam Kernさんが投稿を作成しました:

投稿 Feedback - Help Center (Guide)

Hello,

I'm having an issue where I can't seem to find an answer to, but I can't imagine it's not possible.

In "My activities" section, the "requests_page" more specifically, I added a column where a date is specified (the last column "created" on the picture).

I put a condition where only certain values will show in the "created" column. The code was working well at this point.

However, the value of the last column can be empty. Other values in other columns are present.

What I want is to hide the entire row if the value of the last column is empty. (I used the ajax part in the code to show the last column with the values I want).

$('#hidetablerows > tbody > tr').has('td:empty').hide() : doesn't seem to work in this case but $("#hidetablerows").find("tr:gt(7)").remove(); shows the first 7 rows...

(hidetablerows is the ID of my table)

投稿日時:2021年12月16日 · Ahlam Kern

3

フォロワー

5

投票

5

コメント


Ahlam Kernさんがコメントを作成しました:

コミュニティのコメント Feedback - Help Center (Guide)

Hello,

I'm having an issue where I can't seem to find an answer to, but I can't imagine it's not possible.

In "My activities" section, the "requests_page" more specifically, I added a column where a date is specified (the last column "created" on the picture).

I put a condition where only certain values will show in the "created" column. The code was working well at this point.

However, the value of the last column can be empty. Other values in other columns are present.

What I want is to hide the entire row if the value of the last column is empty. (I used the ajax part in the code to show the last column with the values I want).

$('#hidetablerows > tbody > tr').has('td:empty').hide() : doesn't seem to work in this case but $("#hidetablerows").find("tr:gt(7)").remove(); shows the first 7 rows...

(hidetablerows is the ID of my table)

 

コメントを表示 · 編集日時:2021年12月16日 · Ahlam Kern

0

フォロワー

0

投票

0

コメント