Skip to main content
Level 2
May 18, 2020 3:19 PM UTC
Solved

Not able to save attribute in delivery input form

Hi,

 

I have created smsInformation attribute in delivery schema and added it in xpathsToLoad and xpathsToLoadOpt inside nms:delivery input form.

 

Added below code in nms:delivery input form-

<container img="xtk:text.png" label="Text content" name="tabSMS" readOnlyIf="[/tmp/@readOnly] or ([/ignored/@limitEdition] and [/ignored/@contentStatus]!=10)">
<container>
<input label="SMS Information." xpath="/@smsInformation"/>
</container>
<input fullToolbar="true" htmlMode="false" name="ctSource" nolabel="true"
type="htmlSource" xpath="../content/sms/source" xpathInsert="/ignored/customizeSMSContent">
<container>
<input menuId="deliveryMenuBuilder" type="customizeBtn" xpath="/ignored/customizeSMSContent"/>
</container>
</input>
</container>

 

Below is delivery template-

 

When I type data in SMS information attribute, save the delivery and re-open it the atrribute looks blank.

Please let me know why data not getting save in sms information attribute.

 

Thanks,

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Manoj_Kumar
Manoj_KumarAccepted solution
Community Advisor
May 18, 2020 3:23 PM UTC

Hello @tejashri12 ,

Can you please share the error you are getting while saving the input form.

i believe the error is at the xpath for smsinformation input. Can you double check if the xpath is correct?


Manoj  | https://themartech.pro

12 replies

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
May 18, 2020 3:23 PM UTC

Hello @tejashri12 ,

Can you please share the error you are getting while saving the input form.

i believe the error is at the xpath for smsinformation input. Can you double check if the xpath is correct?


Translate
Manoj  | https://themartech.pro
Level 2
May 19, 2020 5:44 AM UTC

Hi @milan_vucetic and @_manoj_kumar_ 

 

I checked, smsInformation field is updated in schema. Previously I was not getting any error in delivery input form or delivery template.

Since I changed xpath to "@smsInformation", while opening the sms delivery template I'm getting below error.

 

 

Translate
Milan_Vucetic
Level 9
May 18, 2020 7:57 PM UTC

Hi @tejashri12 ,

 

if you created attribute @smsInformation in the main tree in nms:delivery schema you should address it with: <input label="SMS Information." xpath="@smsInformation"/>

Before that, check if you Updated database structure (if new column is reflected to DB not only in the schema).

 

Regards,

Milan

Translate
Level 2
May 19, 2020 3:14 PM UTC

@milan_vucetic @_manoj_kumar_ 

 

I have sms delivery template as below-

 

 

When I type text on SMS content (like Test email) attribute it should automatically reflect on optout information, the one which I greyed out.

Could you please help here?

 

 

Translate
Manoj_Kumar
Community Advisor
Community Advisor
May 19, 2020 4:12 PM UTC
Manoj  | https://themartech.pro