Skip to main content
Level 2
December 22, 2018
Solved

how could I add a message that appear when you open the form

how could I add a message that appear only when you open the Form 1st time

and this message contain text with multi lines

exactly like this :

I need the  whole the code  , and where could I put it   please

I mad this photo on photoshop

Adobe Experience Manager Forms

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mayank_Gandhi
Mayank_GandhiAccepted solution
Adobe Employee
December 28, 2018

to call a script on form initialize place the script on the docReady event:

Once you create the script you can edit in the script editor:

8 replies

Mayank_Gandhi
Adobe Employee
Adobe Employee
December 26, 2018

You can put the message on form initialise of guideroot container.

Translate
Level 2
December 27, 2018

this code give the message

===========

xfa.host.messageBox("   السلام عليكم ورحمة الله وبركاته ... يعطيك قالب التقارير تعليمات مباشرة عن مكوناته وكيفية التعامل مع حقوله    كل ما عليك فعله هو وضع زر الماوس على الحقل لتعرف المطلوب ", "Alert", 3);

but I need the message apear on there lines :

first line :

السلام عليكم ورحمة الله وبركاته

2nd line :

يعطيك قالب التقارير تعليمات مباشرة عن مكوناته وكيفية التعامل مع حقوله

3rd line :

يعطيك قالب التقارير تعليمات مباشرة عن مكوناته وكيفية التعامل مع حقوله    كل ما عليك فعله هو وضع زر الماوس

==how can write the code to make the message on 3 lines ?

Translate
James_R_Green
Level 6
December 27, 2018

Have you tried inserting \n

It may insert a new line character.

E.g.

"Abc def"

"Abc\n def"

Translate
Ravi_Pampana
Community Advisor
Community Advisor
December 27, 2018

In html string you can try adding <br> for new line

"This text contains<br>a line break."

Translate
Ravi Pampana
Mayank_Gandhi
Adobe Employee
Adobe Employee
December 28, 2018

Use this

xfa.host.messageBox("السلام عليكم ورحمة الله وبركاته\u000a يعطيك قالب التقارير تعليمات مباشرة عن مكوناته وكيفية التعامل مع حقوله \u000a يعطيك قالب التقارير تعليمات مباشرة عن مكوناته وكيفية التعامل مع حقوله    كل ما عليك فعله هو وضع زر الماوس ");

Thanks,

Mayank

Translate
Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
December 28, 2018

to call a script on form initialize place the script on the docReady event:

Once you create the script you can edit in the script editor:

Translate
Level 2
December 29, 2018

thanks Mayank .. thank you so much

I have have one more Q  .. hope you can help me

https://forums.adobe.com/message/10836233#10836233

Translate
Mayank_Gandhi
Adobe Employee
Adobe Employee
December 29, 2018

Great that the solution worked for you!

I will check and let you know about the other question also.

Thanks,

Mayank Gandhi

Translate