Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
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;
});

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]