Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Is it possible to add bullets to subform??????????

bharathi_reddy
Level 3
Level 3

HI ,

I have a subform ,which has a text field and two buttons (add button and remove button).And on-clicking on add button  the subform instances will be added.

by clicking on remove button the instances of subform will be removed... i want to add a bullets and numbering of subform .Could any one please help me!!!!!!

I have tried by using this function.

var i =0;

function addBullets()

{

var oPath = xfa.resolveNodes("Page1.BankAccount.CloseAccount.bankAcccntNum[*]");

var len = oPath.length;

if(i<=len)

{

i++;

textfield.rawValue =i;

}

}

i am calling this function on click and initialize of button .For first instance of subform bullet is added .But later instances it is not adding .Please help Me

Thanks,

Bharathi.

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10

Hi,

if you want to show an index number for each subform use a script in its index change event.


// Add current Instance Number into text field


textfield.rawValue = this.index + 1;


View solution in original post

4 Replies
radzmar
Correct answer by
Level 10
Level 10

Hi,

if you want to show an index number for each subform use a script in its index change event.


// Add current Instance Number into text field


textfield.rawValue = this.index + 1;


View solution in original post

bharathi_reddy
Level 3
Level 3

Thanks for your help ,It s really working !!

If I am removing any instance  of subform .The index need to refreshed with current count of instances.How i can do this?

radzmar
Level 10
Level 10

So I assume that the subform bankAcccntNum is the one to be repeated and it contains a textfield to display the index number?!

Then the index will update automatically when any of the subforms is removed.

If not, you propably use a different hierarchy of objects.

Could you then please add a link to your form, so can look at it?

bharathi_reddy
Level 3
Level 3

hey ,the line u sent is working fine .My requirement is fullfilled.