Write a Javascript codelet for my Articulate Storyline course

Tamamlanmış İlan edilme: 4 yıl önce Teslim sırasında ödenir
Tamamlanmış Teslim sırasında ödenir

I am creating an e-learning course using Articulate Storyline.

I want to be able to delete spaces and apostrophes from user entry fields which are auto-generated by the the software, and automatically named TextEntry1, TextEntry2 etc.

I can write code that deletes these from one such text entry field, e.g.:

var p = GetPlayer();

var textentry1 = [login to view URL]("TextEntry1");

var newTextentry1 = [login to view URL](/^\s+|\s+$/g, '');

[login to view URL]("TextEntry1",newTextentry1);

//This takes TextEntry1, calls it textentry1, replaces spaces with '' and calls this value newTextentry1, then sets TextEntry1 to be this new value.

But I need to create a loop which cycles through from 1 to n, appending the number each time to the variables TextEntry, newTextEntry and textentry. I can then set n to be the number I need for any given slide.

I hope this is clear! :/

JavaScript Articulate Storyline

Proje NO: #25312211

Proje hakkında

3 teklif Uzak proje Aktif 4 yıl önce

Seçilen:

hiratariq

Any reason why a simple for loop such as: p = GetPlayer(); for (let step = 1; step < n; step++) { var textentry1 = [login to view URL]("TextEntry" + n); var newTextentry1 = [login to view URL](/^\s+|\s+$/g, ''); [login to view URL]("TextEnt Daha Fazla

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% GBP
(5 Değerlendirme)
2.4

Bu iş için 3 freelancer ortalamada £46 teklif veriyor

Donc310

Hello, nice to meet you, my name is Chris. I have read through your project requirements and I am certain I can have this done for you in a short period of time

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(43 Değerlendirme)
5.8
Dhione

Hello, I want to be able to help you but I don't understand your question Do you change the name of TextEntry? Or what does the student type in TextEntry?

£20 GBP in 7 gün içinde
(2 Değerlendirme)
2.1