Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By richvle
#826045
Does anybody know how to retrieve a control's FORM UID?
I have a parent form that has multiple subforms. Each subforms has unique controls, for example:
Parent Form
Subform1
subform1_controlA
Subform2
subform2_controlA

I have the name of the control, and I want to get the UID of the subform that it's located in.
User avatar
By amosbatto
#826082
You can find the ID of the field's subform with this JavaScript code:
var subformId = $("#fieldID").closest("div.pmdynaform-form").prop("id");
where fieldID is the ID of the field.

If you are creating an event handler for the field, then you can do something like this in your event handler code:
Code: Select all
$("#fieldID").setOnchange( function(newVal, oldVal) {
   var subformId = this.form.el.id;
});

Sending documents as base64 worked the last time I[…]

I don't see those problems using PM 3.3.10 Communi[…]

Tengo el mismo problema con el MultipleFile, inten[…]

Getting this error

_ERROR_ : The row '3149943815d31b85fdf39650326697[…]