# Change Label/Form field Caption

**URL:** <https://www.dynamicsuser.net/t/change-label-form-field-caption/6104>\
**Category:** Developers Forum\
**Created:** [July 9, 2002, 1:19pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104 "2002-07-09T13:19:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmytro](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@Dmytro](https://www.dynamicsuser.net/u/Dmytro)\
**Post date:** [July 9, 2002, 1:19pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/1 "2002-07-09T13:19:57Z")

</div>

Hello! Is it possible to change the field caption of the subform in run-time? How to write this code?

---

<div class="post-metadata">

**Author:** ![Tarek\_Demiati](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@Tarek\_Demiati](https://www.dynamicsuser.net/u/Tarek_Demiati)\
**Post date:** [July 9, 2002, 2:13pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/2 "2002-07-09T14:13:55Z")

</div>

Try this : CurrForm.CAPTION(‘NewCaptionForForm’); ###### **[tarek\_demiati@ureach.com](mailto:tarek_demiati@ureach.com)**

---

<div class="post-metadata">

**Author:** ![Dmytro](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@Dmytro](https://www.dynamicsuser.net/u/Dmytro)\
**Post date:** [July 9, 2002, 2:17pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/3 "2002-07-09T14:17:36Z")

</div>

thank you, but sorry - I meant not the form caption but the captions of subform (tabular type) fields.

---

<div class="post-metadata">

**Author:** ![gjgarciasm](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@gjgarciasm](https://www.dynamicsuser.net/u/gjgarciasm)\
**Post date:** [July 9, 2002, 5:38pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/4 "2002-07-09T17:38:46Z")

</div>

In Navision Attain you can use Caption Class Property. It’s related to **table fields**.

Bye

---

<div class="post-metadata">

**Author:** ![Tarek\_Demiati](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@Tarek\_Demiati](https://www.dynamicsuser.net/u/Tarek_Demiati)\
**Post date:** [July 9, 2002, 5:40pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/5 "2002-07-09T17:40:18Z")

</div>

If you’re like me (still using NF 2.XX) then put a TextBox instead of a Label and set the sourceexpression as you would like … ###### **[tarek\_demiati@ureach.com](mailto:tarek_demiati@ureach.com)**

---

<div class="post-metadata">

**Author:** ![David\_Singleton](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/david_singleton/32/7471_2.png) [@David\_Singleton](https://www.dynamicsuser.net/u/David_Singleton)\
**Post date:** [July 13, 2002, 7:13am UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/6 "2002-07-13T07:13:42Z")

</div>

Hey Tarek, sorry but that doesn’t work, not for List Boxes anyay, it works for just abut anything else. The only real solution, is to upgrade to 3.10 executables, in Attain it is very simple. **\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ David Singleton** _Navision Consultant since 1991_ dmks22@comcast.net\_\_\_\_\_\_\_\_\_\_\_

---

<div class="post-metadata">

**Author:** ![lakshmivalluru](https://avatars.discourse-cdn.com/v4/letter/l/90ced4/32.png) [@lakshmivalluru](https://www.dynamicsuser.net/u/lakshmivalluru)\
**Post date:** [July 17, 2002, 4:53pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/7 "2002-07-17T16:53:16Z")

</div>

hello friends… i am tired now… dont know whether it can be done or not… please can u help me. what i did is : created a unbound form,with table box,with two text fields in it.Then i have a text box where i will select the table.Then this two text boxes should be the first two fields of that table.so i need to change the captions as well as assign the values from that table to thse field ??? is it possible ??? can u atleast tell me how to change the captions using caption class??? Lakshmi Valluru

---

<div class="post-metadata">

**Author:** ![MVGS](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@MVGS](https://www.dynamicsuser.net/u/MVGS)\
**Post date:** [July 17, 2002, 6:48pm UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/8 "2002-07-17T18:48:43Z")

</div>

hi if you look at the sales quote form when u check the " Prices including VAT " field on the main form then the field “unit price excl.vat” on the subform is changed to “unit price incl. vat” at run time. if this is what you are lookin for then juz debug n check it out. have lookinto the properties of the sales line table field “unit price” coz the filed in the table is “unit price”. the xtensions are added at run time. MK

---

<div class="post-metadata">

**Author:** ![lakshmivalluru](https://avatars.discourse-cdn.com/v4/letter/l/90ced4/32.png) [@lakshmivalluru](https://www.dynamicsuser.net/u/lakshmivalluru)\
**Post date:** [July 22, 2002, 12:25am UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/9 "2002-07-22T00:25:05Z")

</div>

no …MK this does not solve my problem. Lakshmi Valluru

---

<div class="post-metadata">

**Author:** ![Rahimuddin](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Rahimuddin](https://www.dynamicsuser.net/u/Rahimuddin)\
**Post date:** [July 22, 2002, 7:21am UTC](https://www.dynamicsuser.net/t/change-label-form-field-caption/6104/10 "2002-07-22T07:21:57Z")

</div>

Have a look at Form 39 General Journal which is based on Tbl 81. In form u’ll see TextBox controls ShortcutDimension 1 to 8, but in source table u have only GlobalDim1 and 2. At runtime, these SDs get their caption as well as values from other tables(GLSetup,Dimension,Jnl Line Dim etc.). How it’s handled requires you to go through few Tables/codeunits. As for how CaptionClass Property works, i think u know where to refer for help. Regards
