Avatar

Best Practice to get element on kintone app page?

Afief

Dear Developers,

As the title said, is there any best way to get the element of a field_code in Kintone? Like getElementById but using field_code instead.

Any answer would be appreciated, thank you.

Afief

Follow 2 followers
1

2 comments

Avatar
Junko Werner 1 vote
The Kintone API allows you to get an element depending on the page and field as below, so I would think those are the best way.

●kintone.app.getFieldElements(fieldCode) at Record list Page

●kintone.app.record.getFieldElement(fieldCode) at Record Details Page
 (Cannot be called on the Record edit/create page, or the notification page)
 
●kintone.app.record.getSpaceElement(id) at Record Details/Create/Edit Page
1
Avatar
Afief 0 votes

Hi Junko, please pardon for my very late reply.

I already tried these functions, and I've found some way to get the element of a field that I want to get from any event (index, create, edit, or detail)

I appreciate it, thank you

0