Data Script for Button Text

I am using the following data transformer script on a text element, which works perfectly:
return "Follow " + input + “profile”;

When I use the same code on a button to set the text value, it only returns the value of the input data. The concat scripts seems to be completely ignored.

1 Like

Looking at ‘code glance’ I can see the code doesn’t seem to be updated:

<div className="elButton">
            <Button className="actionFont" style={style_elButton}  color="accent" onClick={this.onClick_elButton} >
              {this.props.fullName}
            </Button>

I am having this same issue right now. I want to substring the text value before it is displayed. It only ever returns the input value though.

1 Like

HI, this is clearly a bug in code generation. We’ll check it in the next release.

2 Likes