---
sourceDocument: 호주 API 참조
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/api-reference

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 API 참조

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# 모바일 GlideForm(g_form) - 클라이언트

# 모바일 GlideForm(g_form) - 클라이언트 {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 03월 12일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 4분

모바일 GlideForm(g_form) API는 모바일 플랫폼에서 양식을 사용하는 메서드를 제공합니다.

모바일 장치를 대상으로 하는 스크립트에서 이러한 방법을 사용합니다.

## MobileGlideForm(g_form) - addDecoration(문자열 fieldName, 문자열 아이콘, 문자열 텍스트) {#ariaid-title2}

필드 옆에 장식 아이콘을 추가합니다.
{#r_MGF-addDecoration_S_S_S__table_nbc_4dw_mt__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| fieldName | 문자열 | 필드 이름입니다. |
| 아이콘 | 문자열 | 필드 옆에 표시할 글꼴 아이콘입니다. |
| 텍스트 | 문자열 | 아이콘의 텍스트 제목(화면 판독기에 사용됨)입니다. |
[표 1. 매개변수]

{#r_MGF-addDecoration_S_S_S__table_nbc_4dw_mt} {#r_MGF-addDecoration_S_S_S__table_obc_4dw_mt__entry__2}

| 유형 | 설명 |
|-|-|
| 무효 |   |
[표 2. 반환]

{#r_MGF-addDecoration_S_S_S__table_obc_4dw_mt}  
이 예에서는 호출자 옆에 VIP 아이콘을 추가합니다.

    function onChange(control, oldValue, newValue, isLoading) {
          // if the caller_id field is not present, then we can't add an icon anywhere
          if (!g_form.hasField('caller_id'))
              return;
          
          if (!newValue)
             return;
          
          g_form.getReference('caller_id', function(ref) {
          g_form.removeDecoration('caller_id', 'icon-star', 'VIP');
          
          if (ref.getValue('vip') == 'true')
               g_form.addDecoration('caller_id', 'icon-star', 'VIP');			
          });
          }

## MobileGlideForm(g_form) - getLabel(String fieldName) {#ariaid-title3}

양식 레이블 텍스트를 가져옵니다.
{#r_MGF-getLabel_S__table_jbc_4dw_mt__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| fieldName | 문자열 | 필드 이름입니다. |
[표 3. 매개변수]

{#r_MGF-getLabel_S__table_jbc_4dw_mt} {#r_MGF-getLabel_S__table_kbc_4dw_mt__entry__2}

| 유형 | 설명 |
|-|-|
| 문자열 | 레이블 텍스트입니다. |
[표 4. 반환]

{#r_MGF-getLabel_S__table_kbc_4dw_mt}  

    if (g_user.hasRole('itil')) {
          var oldLabel = g_form.getLabel('comments');
          g_form.setLabel('comments', oldLabel + ' (Customer visible)');
          }

## MobileGlideForm(g_form) - hasField(문자열 fieldName) {#ariaid-title4}

양식에 필드가 있는지 여부를 결정합니다.
Present는 표시되는 것이 아니라 표시할 수 있음을 의미합니다.
{#r_MGF-hasField_S__table_lbc_4dw_mt__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| fieldName | 문자열 | 찾을 필드입니다. |
[표 5. 매개변수]

{#r_MGF-hasField_S__table_lbc_4dw_mt} {#r_MGF-hasField_S__table_mbc_4dw_mt__entry__2}

| 유형 | 설명 |
|-|-|
| 부울 | 필드가 양식에 있으면 True입니다. 아니오입니다. 양식에서 필드가 g_form의 일부임을 의미합니다. 여전히 숨겨져 있거나, 읽기 전용이거나, 필수이거나 유효하지 않을 수 있습니다. |
[표 6. 반환]

{#r_MGF-hasField_S__table_mbc_4dw_mt}  
이 예에서는 assignment_group 필드가 양식에 있는 경우 assigned_to 필드를 필수로 만듭니다.

    if (g_form.hasField('assignment_group'))
          g_form.setMandatory('assigned_to', true);
        
## MobileGlideForm(g_form) - removeDecoration(String fieldName, 문자열 아이콘, 문자열 텍스트) {#ariaid-title5}

필드 옆에 있는 장식 아이콘을 제거합니다.
{#r_MGF-removeDecoration_S_S_S__table_q5v_wvw_mt__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| fieldName | 문자열 | 필드 이름입니다. |
| 아이콘 | 문자열 | 제거할 아이콘입니다. |
| 텍스트 | 문자열 | 아이콘의 텍스트 제목입니다. |
[표 7. 매개변수]

{#r_MGF-removeDecoration_S_S_S__table_q5v_wvw_mt} {#r_MGF-removeDecoration_S_S_S__table_t5v_wvw_mt__entry__2}

| 유형 | 설명 |
|-|-|
| 무효 |   |
[표 8. 반환]

{#r_MGF-removeDecoration_S_S_S__table_t5v_wvw_mt}  

    function onChange(control, oldValue, newValue, isLoading) {
          // if the caller_id field is not present, then we can't add an icon anywhere
          if (!g_form.hasField('caller_id'))
               return;
          
          if (!newValue)
               return;
          
          g_form.getReference('caller_id', function(ref) {
               g_form.removeDecoration('caller_id', 'icon-star', 'VIP');
          
               if (ref.getValue('vip') == 'true')
                    g_form.addDecoration('caller_id', 'icon-star', 'VIP');			
          });
          }

## MobileGlideForm(g_form) - setLabel(String fieldName, String label) {#ariaid-title6}

양식 레이블 텍스트를 설정합니다.
{#r_MGF-setLabel_S_S__table_fbc_4dw_mt__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| fieldName | 문자열 | 필드 이름입니다. |
| 레이블 | 문자열 | 필드 레이블 텍스트입니다. |
[표 9. 매개변수]

{#r_MGF-setLabel_S_S__table_fbc_4dw_mt} {#r_MGF-setLabel_S_S__table_gbc_4dw_mt__entry__2}

| 유형 | 설명 |
|-|-|
| 무효 |   |
[표 10. 반환]

{#r_MGF-setLabel_S_S__table_gbc_4dw_mt}  
이 예시에서는 의견 레이블을 변경합니다.

    if (g_user.hasRole('itil')) {
          var oldLabel = g_form.getLabel('comments');
          g_form.setLabel('comments', oldLabel + ' (Customer visible)');
          }


