> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-mss-to-kalipso/document-user-fields.md).

# Document User Fields

EXT\_DOC\_CabUserField - Function to replace MSS interface to edit the document header user fields&#x20;

Input parameters:&#x20;

* inDocumentType - Document type&#x20;
* inCustomerCode - Customer code&#x20;
* inUserFieldNumber - User field index (between 1 and 3)&#x20;
* inCurrentValue - Current value of the user field

Output parameters:&#x20;

* outReturnCode - 1 - OK / 0 - Cancel&#x20;
* outReturnValue - Value to store&#x20;
* outReturnDescription - Value to display

EXT\_DOC\_LineUserField- Function to replace MSS interface to edit the document lines user fields&#x20;

Input parameters:&#x20;

* inDocumentType - Document type inCustomerCode - Customer code&#x20;
* inArticleCode - Article code&#x20;
* inUserFieldNumber - User field index (between 1 and 3)&#x20;
* inCurrentValue - Current value of the user field
* inCurrentLine - Selected line number (0 - New article selected)

Output parameters:&#x20;

* outReturnCode - 1 - OK / 0 - Cancel&#x20;
* outReturnValue - Value to store&#x20;
* outReturnDescription - Value to display
